I wonder how could I obtain an automatic mapping between entities generated by entity framework (.NET Framework 3.5 SP1) and custom domain model classes? I know I can create some data converters that translates the objects back and forth between the two worlds, but how could I accomplish this in an automatic way?
I started to develop my domain model classes, decorating them with validation attributes from Validation application block, which cannot be used inside the entity classes automatically generated (and refreshed) by the entity framework. Hence the need for automatically - or at least with minimal written code - mapping between EF and domain model.. any idea?