Some tables in my database are designed using the EAV concept. Then I use the objects that are generated automatically and represent the "static" tables (and not the "EAV" tables) of the ORM Entity Framework as DDD objects.
- How can I use "EAV" objects in an object model (not in a relational one, like in a database) using the Entity Framework?
For instance,
in the database I have static Report and EAV tables that help me store ReportProperty for the report.
In the domain model, I want to have a report like this:
Report { ICollection<ReportProperty> ReportProperties{get;set;} }
I can use the Report object generated by the Entity Framework and implement some logic in the getter in the partial section to extract data from my EAV tables to populate the Collection ReportProperies. He then asks the following question.
- What should I do if I decide to use NHibernate instead of the Entity Framework because I cannot use my partial partition, which I already understand using the Entity Framework?
If I use DDD objects that I can use for Entity Framework or NHibernate, this is unlikely to be for me, because I will need call matching procedures in each procedure of my DAO.
source share