MongoRepository icon indicating copy to clipboard operation
MongoRepository copied to clipboard

Do not want to use Entity for my classes.

Open skalinkin opened this issue 9 years ago • 1 comments

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?

skalinkin avatar Jan 14 '16 20:01 skalinkin

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.

RobThree avatar Jan 15 '16 00:01 RobThree