문제

For my IRepository, i would like:

  1. To have it be usable by a micro-orm like dapper, petapoco, massive etc... for the SPEED
  2. To have where clauses that get run on the server, hopefully using Expression/IQueryable style (which is also very swappable)

Is it possible to get both? How would you write an IRepository Where for micro orms? Are micro ORMs good for projects big enough to necessitate Repositories?

I need speed and swap-ability. Without a good where my repository pattern is worthless, right?

도움이 되었습니까?

해결책

If you like things looking good like POCO classes, and also want speed of MicroORM, than you must check, ServiceStack OrmLite. Even you can use Massive or Dapper. Just a use of that will be different.

But one thing is for sure, Code will be less and speed is like anything. Do let me know if you need any code snippet. Just go through the github sites, that will help.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top