110,565
社区成员
发帖
与我相关
我的任务
分享
public class tempAdatper : ls.NorthwindDataSetTableAdapters
{
public NorthwindDataSet.CustomersDataTable GetByIdWhere(string str)
{
this.CommandCollection[0].CommandText = "你自己的sql语句";
this.Adapter.SelectCommand = this.CommandCollection[0];
XXDataTable dataTable = new XXDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
}
public class tempAdatper:MSSQLDAL.XXDataTableAdapter
{
public XXDataTable GetByIdWhere(string str)
{
this.CommandCollection[0].CommandText =你自己的sql语句 this.Adapter.SelectCommand = this.CommandCollection[0];
XXDataTable dataTable = new XXDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
}