views:

128

answers:

2

I would like to implement the repository pattern, having my domain classes being independent from my repository implementation.

but maintain my domain classes -on schema updates using EF for example- is really expensive.

Do you know someway to automatize domain classes updates based on the ORM classes? -using T4 templates or something similar...

A: 

One solution is to use a tool like Automapper.

Maxwell Troy Milton King
Thanks. : )But my question is more related to how maintain my domain classes updated based in another set of classes, than map values between different classes.Something like GAS3 for Flex and java : )Thanks again.
SDReyes
I see. Fair enough, but wouldn't that be kind of pointless? (in a 'domain-driven' way)
Maxwell Troy Milton King
+1  A: 

Now i don't know if you are working with EF 4, but in that case Poco templates have recently been released on the Ado.Net Team Blog

Luhmann
Wow This was totally new for me. Thank you very much Luhmain : )Altough I need an automatized way to generate POCO's totally independent from the repository.This could works very well.Thanks!
SDReyes