Implementing DTO's in.Net
Hi,
Can anyone suggest some good approaches to build Data Transfer Objects using .Net custom classes. Also would like to make them bindable friendly. Meaning when I have an array of entities and would like to bind the same to a datagrid. what interfaces do I need to implement to make it bindable to the datagrid.
Thanks
Sai
[802 byte] By [
SaiA] at [2007-12-26]
Hi Sai,
I invite you to check an article published in SkyScrapr a couple of weeks ago
That article comments about DTO and particularly mentions a free way to take advantage of its benefits in the .NET platform, thanks to the typed datasets (not just mere ADO.NET datasets but domain classes backed on datasets)
Hope it helps 
Dtos are really just for transfers, you should probably map the dto to a custom business object.
for binding its best to look for interfaces under the system.componentmodel i.e. IdataErrorInfo and INotifyPropertyChanged. If you want to learn more about business objects, try looking at a framework like csla.net that might give you some ideas.