asp.net-mvcdesign-patternssoftware-designpoeaa

what is the difference between a view model and a data transfer object?


I'm basing this question on Fowler PoEAA. Given your familiarity with this text, aren't the ViewModels used in ASP.NET MVC the same as DTOs? Why or why not? Thank you.


Solution

  • They serve a similar purpose (encapsulating data for another layer of the application) but they do it differently and for different reasons.