示例#1
0
 public virtual library_dataDataSet.merclocDataTable GetData()
 {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     library_dataDataSet.merclocDataTable dataTable = new library_dataDataSet.merclocDataTable();
     this.Adapter.Fill(dataTable);
     return(dataTable);
 }
示例#2
0
 public virtual int Fill(library_dataDataSet.merclocDataTable dataTable)
 {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if (this.ClearBeforeFill)
     {
         dataTable.Clear();
     }
     return(this.Adapter.Fill(dataTable));
 }
示例#3
0
 public virtual library_dataDataSet.merclocDataTable GetDataBy(string locid, string stkid)
 {
     this.Adapter.SelectCommand = this.CommandCollection[1];
     if (locid == null)
     {
         throw new ArgumentNullException("locid");
     }
     this.Adapter.SelectCommand.Parameters[0].Value = locid;
     if (stkid == null)
     {
         throw new ArgumentNullException("stkid");
     }
     this.Adapter.SelectCommand.Parameters[1].Value = stkid;
     library_dataDataSet.merclocDataTable dataTable = new library_dataDataSet.merclocDataTable();
     this.Adapter.Fill(dataTable);
     return(dataTable);
 }
示例#4
0
 public virtual int FillBy(library_dataDataSet.merclocDataTable dataTable, string locid, string stkid)
 {
     this.Adapter.SelectCommand = this.CommandCollection[1];
     if (locid == null)
     {
         throw new ArgumentNullException("locid");
     }
     this.Adapter.SelectCommand.Parameters[0].Value = locid;
     if (stkid == null)
     {
         throw new ArgumentNullException("stkid");
     }
     this.Adapter.SelectCommand.Parameters[1].Value = stkid;
     if (this.ClearBeforeFill)
     {
         dataTable.Clear();
     }
     return(this.Adapter.Fill(dataTable));
 }