The experience to use XSD dataset class

Source: Internet
Author: User

1. Get the name when creating the class. After you change the name, you cannot change the class name, for example, detaset1. If you want to use humanresourse later, you can only use the name.

// You can change the name by use the name propertty. The XSD name does affect he dataset class name. So you must change the dataset class name.

2. How to reference. For example, if the HR dataset class is created and referenced

Using hrtableadapters

Because there are many tables, there can be many tableadapters in HR. So it should be used in this way.

How to Create hrtableadapter object:

Just use hrtableadapters. tableadptersname_create TNC = new hrtableadapters. tableadptersname_create ().

How to Use datatable?

Hrname_datatable HDT = TNC. getdata ();

3. How to see the definition function code.

I don't have any other good ways to access the definition, just use "go to definition" in the vs code tools.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.