RobThree / MongoRepository

Repository abstraction layer on top of Official MongoDB C# driver
https://www.nuget.org/packages/MongoRepository/
MIT License
307 stars 141 forks source link

Do not want to use Entity for my classes. #25

Open skalinkin opened 8 years ago

skalinkin commented 8 years ago

Hi Guys, I would like to have my application abstracted from data store layer. But in order to use Generic Repository I have to inherit my entities from Entity class. I would like to have no references to your library from my application but inject data layer using container. Do you have any plans to support entities based on DataAnnotation attributes for example, or something else?

RobThree commented 8 years ago

No. Best I can do is advise you to use IEntity (or IEntity<T>) instead of Entity. We will, for 2.0 try to move the interfaces to a separate assembly / package. Other than that we have no concrete plans for moving even more loosly coupled by using attributes yet.