现在的位置: 首页 > 综合 > 正文

The experience to use XSD dataset class

2012年02月16日 ⁄ 综合 ⁄ 共 589字 ⁄ 字号 评论关闭

1.创建类的时候取好名字,改名字后,不能更改类的名字如detaset1,以后想要用HumanResourse,虽然该了名字,但是还是只能这么用.

//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.如何引用。 比如创建了HR DataSet类,引用的时候,就用

using HRTableAdapters

因为表多,HR里面可以有很多个TableAdapter。所以就应该这么用

 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.

 

抱歉!评论已关闭.