コード例 #1
0
 public virtual int FillByName(FullDataSet.ProductDataTable dataTable, string name) {
     this.Adapter.SelectCommand = this.CommandCollection[1];
     if ((name == null)) {
         this.Adapter.SelectCommand.Parameters[1].Value = System.DBNull.Value;
     }
     else {
         this.Adapter.SelectCommand.Parameters[1].Value = ((string)(name));
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
コード例 #2
0
 public virtual int Fill(FullDataSet.SubstanceDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
コード例 #3
0
 public virtual int Fill(FullDataSet.ProductDataTable dataTable, System.Nullable<bool> isnds) {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if ((isnds.HasValue == true)) {
         this.Adapter.SelectCommand.Parameters[1].Value = ((bool)(isnds.Value));
     }
     else {
         this.Adapter.SelectCommand.Parameters[1].Value = System.DBNull.Value;
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }