I’ve created a rich domain model that’s populate from the UI, and now I need to pass it through WCF to be processed. I need to convert my rich domain model to a DTO to pass through WCF, and I’m going to need it converted back to my rich domain model so I can work with it again.
What are my options here? I just finished created the domain model => DTO conversion, and I feel like it’s going to be a pain point to maintain in the future.
Is this where a product like AutoMapper excels?
Yes, I’d absolutely recommend AutoMapper as being the tool of choice here.
Here’s a great tutorial by Jimmy Bogard on dnrTV