If I get a Person from Code First Entity Framework and I use AutoMapper to cast it to a PersonViewModel and then the PersonViewModel makes its way up to a form in an ASP.NET MVC view and then the modified PersonViewModel is rolled back into a Person shape with AutoMapper, the reference to Entity Framework is going be lost right? I have a new Person at this point and I have to query the same Person with Entity Framework and then map the properties off of the altered Person to the queried Person. I see little escape.
No comments:
Post a Comment