Hour 20

Quiz Answers

1: What is the directive of XSD that generates the dataset?
  1. /n directive

  2. /d directive

  3. /l directive

A1: b. The /d[ataset] directive tells the XSD tool to generate a typed DataSet class code from the supplied .xsd schema file.
2: True or false: You can only generate a typed DataSet using the XSD XML Schema Definition tool?
A2: False. You can generate typed DataSets both manually with the XSD tool and dynamically in Visual Studio .NET.
3: How can the manually created typed DataSet be referenced in my VB code?
  1. Imports an /r directive with library (.dll)

  2. /l language directive at compile time

  3. /n directive at compile time

A3: a. You can use the Imports reference in your code and supply the /r: reference for the typed dataset class (.dll) you ...

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.