Hi Marc,
Thanks for posting in the community!
From your description, you're looking for some suggestions on generate
DataSet(DataTable and recoreds) from existing Class Instances. Also, these
classes has relations with each other such as Master-Detail.. ,yes?
If there is anything I misunderstood, please feel free to let me know.
Based on my experience, if you used untyped dataset, you may need to create
the dataset and DataTables and manually create datarow and set the datas
in your class instance into row. However, the typed DataSet maybe more
suitable for you, it can provide more object-oriented operations on
manipulating data(insert , update ,delete). Do data manipulate on typed
dataset is just like on a certain class's instance collection. Here are
some tech references and articles on typed dataset:
#Walkthrough: Creating a Dataset with Tables, Keys, and One-to-Many
Relationships
http://msdn.microsoft.com/library/en...roughCreatingX
MLSchemaWithOne-to-ManyRelationship.asp?frame=true
#Creating Typed Dataset
http://msdn.microsoft.com/library/en...DataSetCreatio
nInVisualStudioNET.asp?frame=true
#Working with a Typed DataSet
http://msdn.microsoft.com/library/en...ingwithtypedda
taset.asp?frame=true
#Implementing Data Transfer Object in .NET with a Typed DataSet
http://msdn.microsoft.com/library/en...typedDataSet.a
sp?frame=true
Please check out the above items. Hope they are helpful.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx