2017-08-11 16:51:46 +05:30
|
|
|
---
|
|
|
|
layout: pattern
|
|
|
|
title: Data Transfer Object
|
|
|
|
folder: data-transfer-object
|
|
|
|
permalink: /patterns/data-transfer-object/
|
|
|
|
categories: Architectural
|
|
|
|
tags:
|
2019-12-13 21:09:28 +02:00
|
|
|
- Performance
|
2017-08-11 16:51:46 +05:30
|
|
|
---
|
|
|
|
|
|
|
|
## Intent
|
|
|
|
Pass data with multiple attributes in one shot from client to server,
|
|
|
|
to avoid multiple calls to remote server.
|
|
|
|
|
2019-12-07 20:01:13 +02:00
|
|
|
## Class diagram
|
2017-08-11 16:51:46 +05:30
|
|
|

|
|
|
|
|
|
|
|
## Applicability
|
|
|
|
Use the Data Transfer Object pattern when
|
|
|
|
|
|
|
|
* The client is asking for multiple information. And the information is related.
|
|
|
|
* When you want to boost the performance to get resources.
|
|
|
|
* You want reduced number of remote calls.
|
|
|
|
|
|
|
|
## Credits
|
|
|
|
|
|
|
|
* [Design Pattern - Transfer Object Pattern](https://www.tutorialspoint.com/design_pattern/transfer_object_pattern.htm)
|
|
|
|
* [Data Transfer Object](https://msdn.microsoft.com/en-us/library/ff649585.aspx)
|