Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top