There are lots of tutorials for flattening domain models into DTO using AutoMapper. I am using Entity framework and I want to flatten my Domain models into DTO to send across my service which is implemented in WCF. The DTO will then be used as view models in my MVC presentation layer.
I am confused with what I do with the DTO after it has been updated by the view. There seems to be numerous blogs wondering why you would unflatten the DTO back to a domain model:
http://lostechies.com/jimmybogard/2009/09/18/the-case-for-two-way-mapping-in-automapper/
Product –> ProductDTO
ProductDTO –> Product
I assumed this is the approach I would take. What do I do with the DTO after its been updated and sent back across WCF? How do I commit it to the DB if its not a domain model? Or should I use a different mapper like ValueInjecter to achieve flattening and unflattening?