public virtual int Fill(dsOrders.OrderDetailsDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillByOrderID(dsOrders.OrderDetailsDataTable dataTable, int p1) {
     this.Adapter.SelectCommand = this.CommandCollection[1];
     this.Adapter.SelectCommand.Parameters[0].Value = ((int)(p1));
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
 public virtual int FillByOrderNo(dsOrders.OrdersDataTable dataTable, string p1, string p2) {
     this.Adapter.SelectCommand = this.CommandCollection[2];
     if ((p1 == null)) {
         throw new global::System.ArgumentNullException("p1");
     }
     else {
         this.Adapter.SelectCommand.Parameters[0].Value = ((string)(p1));
     }
     if ((p2 == null)) {
         throw new global::System.ArgumentNullException("p2");
     }
     else {
         this.Adapter.SelectCommand.Parameters[1].Value = ((string)(p2));
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }