I wonder how I can get automatic matching between entities generated by an entity framework (.NET Framework 3.5 SP1) and classes of custom domain classes? I know that I can create some data converters that will move objects back and forth between two worlds, but how can I do this automatically?
I started developing domain model classes, decorating them with validation attributes from a validation application block that cannot be used inside entity classes that are automatically generated (and updated) by the entity infrastructure. Therefore, it is necessary to automatically - or at least with a minimum written code - a comparison between the EF and the domain model. Any idea?
source share