• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 535
  • Last Modified:

DataSet class?

Which type of DataSet is derived from the base DataSet class and then uses information in an XML Schema file (.xsd file) in order to generate a new class?

Untyped DataSet
 
 
--------------------------------------------------------------------------------
 
  Typed DataSet
 
 
--------------------------------------------------------------------------------
 
  XML DataSet
 
 
--------------------------------------------------------------------------------
 
  XSD DataSet
 
0
mathieu_cupryk
Asked:
mathieu_cupryk
  • 5
  • 4
1 Solution
 
ozymandiasCommented:
Not familiar with any of those classes.
Are you sure you have the names right...they have spaces in them.
0
 
mathieu_cuprykAuthor Commented:
100 %
0
 
mathieu_cuprykAuthor Commented:
Could it be strongly typed?
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
ozymandiasCommented:
It is most likely to be TypedDataSet but he questoion is confusing.
There is no class called TypedDataSet.
0
 
mathieu_cuprykAuthor Commented:
But it is not in the list?
0
 
ozymandiasCommented:
Yes. It is Typed Dataset.
0
 
mathieu_cuprykAuthor Commented:
Your Typed DataSet directly derives from DataSet so all the DataSet-related classes and methods will work. One of the distinct advantages of using a Typed DataSet is that elements of the DataSet are strongly typed and strongly named. The use of the new class is a little different than our old DataSet examples, as shown in Listing 6.4.

Listing 6.4: Using a Typed DataSet
0
 
ozymandiasCommented:
Yeah, I found it too....

A typed DataSet is a class that derives from a DataSet. As such, it inherits all the methods, events, and properties of a DataSet. Additionally, a typed DataSet provides strongly typed methods, events, and properties. This means you can access tables and columns by name, instead of using collection-based methods. Aside from the improved readability of the code, a typed DataSet also allows the Visual Studio .NET code editor to automatically complete lines as you type.

Additionally, the strongly typed DataSet provides access to values as the correct type at compile time. With a strongly typed DataSet, type mismatch errors are caught when the code is compiled rather than at run time.

0
 
mathieu_cuprykAuthor Commented:
good job boys!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now