Alex Rivera | Logout

What is a Data Transfer Object (DTO)?

Asked 2009-06-26T20:40:23.893
469

In MVC are the model classes DTO? If not, what are the differences and do we need both?

Edit
Report

1 Answer

53

The definition for DTO can be found on Martin Fowler's site. DTOs are used to transfer parameters to methods and as return types. A lot of people use those in the UI, but others inflate domain objects from them.

answered 2009-06-26T20:43:28.333

Your Answer