Views: 5.2K
Replies: 1
Archived
|
Why not use DTO?BusinessObjects from WinForms of Patterns In Action4.5
Current : My Coding : DTO (http://corej2eepatterns.com/Patterns2ndEd/TransferObject.htm) Why do not use DTO? Ji Hyeonmyeong, Sep 21, 2015
|
|
Reply 1Hello Ji:
In our example the Member Business Object is mapped to a Member Model which is a DTO. In your example the Business object is returned, which may or may not be a DTO (if it has methods it is not considered a DTO). But if it is a DTO then your example is just fine. In fact, if it not a DTO is would also be fine. DTO is a 'best practice' but not absolutely necessary. Hope this helps. Jack Jack Poorte, Sep 26, 2015
|