The UserDS DataSet

To gain access to the information stored in the User and UserType tables, we created a new strongly typed dataset class by first creating an XML schema file. The UserDS.xsd file was created by describing, in XML, the layout and makeup of the User and UserType database tables. Listing 18.5 shows this schema.

Listing 18.5. The UserDS.xsd Schema
<?xml version="1.0" encoding="utf-8" ?>
<xsd:schema id="UserDS" targetNamespace="http://tempuri.org/UserDS.xsd"
 elementFormDefault="qualified" xmlns=http://tempuri.org/UserDS.xsd xmlns:xsd="http://www
.w3.org/2001/ XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:element ...

Get Building e-Commerce Sites with the .NET Framework 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.