Overview;
The Data Transfer Object pattern recognizes a need to encapsulate and organize data within an object which is not dependent on a database table (e.g. Model) and is not specifically tied to any particular application tier. That is, DTO's are used by various tiers to transfer specific data which is not stored in the database.
Data Transfer Objects should be nothing more than properties and very limited method helpers. The key is to not include logic, persistence, UI, or any other information which would couple the object to a specific layer in the application.
0 comments:
Post a Comment