• Silverlight.FX
    Silverlight.FX is a light-weight application framework for building RichInternet Applications with Silverlight 2.
  • Building Modular Silverlight Applications
  • .NET RIAServices - Building Data-Driven Applications with Microsoft Silverlight andMicrosoft ASP.NET
  • Securing Silverlight Application and WCF Service using ASP.Net Authentication Techniques
  • Model– View – ViewModel in Silverlight
Skip Navigation LinksHome / News / View News

Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 6: Data Transfer Objects (DTOs)

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on Jul 17, 2009
(0 votes)
Tags: Data Transfer Objects , .NET RIA Services , Silverlight 3

To show how easily the pattern for Data Transfer Objects (DTOs) is used with RIA Services and Silverlight 3, Brad Abrams took the example app from the previous parts of the series and changed it to return DTOs rather than DAL types. Before reading this post be sure that you have checked the previous parts of the series : Part 1: Navigation Basics, Part 2: Rich Data Query, Part 3: Authentication, Part 4: SEO, Export to Excel and Out of Browser, Part 5: Astoria, Add Service Reference and WinForms.

I have gotten some great questions on my series so far…   A couple of readers noted that it was not always a good idea to return DAL types back to the client.  For example, in Part 2, I returned the SuperEmployee type defined by Entity Framework.   

For example, if you change your backed from EF to NHibernate to their might be some effect of that in the client projection.    I can also more easily control exactly how the entity looks to the client.  Both the shape of the data as well as the validation, etc. To address these concerns some folks have been using pattern for Data Transfer Objects (DTOs) or some call them client objects.



Comments RSS RSS
No comments

Add Comment