model view controller - What is Data Transfer Object? -


What is the data transfer object?

There are Model Class DTOs in MVC, and if not, then what is the difference and do we need both?

The data transfer object is an object that is used to encode data, and an application They send it from one sub-system to another.

DTO is usually used to transfer data between your and UI layers, usually by the level of services in the n-tier application. The main benefit here is that it reduces the amount of data that should be sent to the wire in distributed applications. They also make great models in MVC patterns.

Another use method for the DTO may be to summarize the standards for the call. This can be useful if any method takes more than 4 or 5 parameters.

When using the DTO pattern, you can also use the DTO assemblers. Combinations are used to create DTO from domain objects, and vice versa.

Conversion from domain object to DTO and back again can be a costly process. If you are not creating a distributed application, you might not see a big profit from the pattern, as


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -