O'Reilly logo

Programming Microsoft® ADO.NET 2.0 Core Reference, 2nd Edition by David Sceppa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Strongly Typed DataSet Objects

So how do you create a strongly typed DataSet class? You can choose one of two basic approaches. One involves writing code and using a command-line tool that’s part of the .NET Framework SDK. The other approach, which is much simpler, relies on the Visual Studio development environment and doesn’t require you to open a Command window.

The Hard Way

The .NET Framework SDK includes a command-line utility called the XML Schema Definition Tool, which helps you generate class files based on XML schema (.xsd) files. You can use this utility in conjunction with the DataSet class’s WriteXmlSchema method to translate your DataSet into a strongly typed DataSet class.

Using the DataSet Class’s WriteXmlSchema Method

Later ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required