Home  /  Questions  /  Question



250   96.9
Jan 24, 2014


DTOs in Patterns in action

I don't understand why you use DTOs and the AutoMapper to then map business objects to the DTOs?

isn't one of the reasons to use DTOs not to make your BO available (hide them)? Why do you then reference your BO layer from the presentation layer?

Thanks!

 1 comment
 
By analyzing Patter framework 4.0, I can see examples of using DTOs at the service layer, this way completely isolating the presentation layer from the BL and real objects. The presentation only has a reference to the service layer. Why did you use the DTOs in the Presentation layer and reference the business layer in Pattern framework 4.5? --- Angel Valdes  Jan 29, 2014



50   50
Jun 08, 2015