Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Typed datasets
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Miscellaneous
Thread ID:
00827126
Message ID:
00827197
Views:
15
>Can anyone point me to a good reference to help me understand typed datasets?
>
>My understanding to this point is that a typed dataset simply has an XML Schema associated with it. I'm doing this at runtime by using the ReadXmlSchema() method of the dataset.
>
>I'm a little vague as to the utility and advantages of using typed datasets, and it would seem that maintenance of the XML Schemas for each dataset used in a complex application could become a bit of a headache. I want to learn more.
>
>Thanks.

It is pretty simple to write a small application that can generate the XSD for you from the table structure or from the results of a stored procedure. Add the XSD to your project and your good to go. We have sub-classed from generated C# code the VS.NET generates from a XSD, so we have even greater flexibility. You do have to change structure anytime your table changes or your SQL statement changes, but with a tool it can be very quickly done.

It makes the syntax easier when coding, I think and adds another layer of type checking before it goes into the database. I think the advantages outweight any disadvantages.

Morgan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform