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 -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -