none
Entity Framework Code first TpT mapping in a composite/modular app RRS feed

  • Question

  • I'm working on a composite total system application which different companies may add different modules but there is only one database.I have a Generic repository in my framework which is technology independent (I mean it's provider base and for now the defult provider is EF 4.1 ).I have seprated common layer which contains poco entities and there is also different entities per module in their own assemblies. Now the problem is the entities mapping.I don't have any access to my entities from my EF provider project as I don't know the future modules ! so how can I map my entities in a generic approach? Is it possible?

    One solution that I think is having a config file and adding entities FullName then ieterating and reflecting each one and then I can add them in OnModelCreat(...) method but ofcourse there is some performance concerns.


    Sunday, February 5, 2012 7:42 PM

Answers