Q&A

Q1:What is the best way to create a typed DataSet?
A1: Two paths exist for you to generate typed DataSets. One path is the manual approach using the XSD tool. The other path is dynamically using the Generate Dataset option in Visual Studio .NET. Both are equal in their results.
Q2:Should I code my own XSD schema files for datasets?
A2: You can do this, but remember, this XML schema must comply to the standard XML schema definitions as described at http://w3c.org. It is much easier to have Visual Studio .NET, use the WriteXmlSchema method, or use the XSD tool to generate this for you. You can then edit this slightly to suit your needs.

Get Sams Teach Yourself ADO.NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.