Exemplo n.º 1
0
 public virtual Order.CalculatedOrderDetailsDataTable GetDataBy(global::System.Nullable<int> OrderID) {
     this.Adapter.SelectCommand = this.CommandCollection[1];
     if ((OrderID.HasValue == true)) {
         this.Adapter.SelectCommand.Parameters[0].Value = ((int)(OrderID.Value));
     }
     else {
         this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
     }
     Order.CalculatedOrderDetailsDataTable dataTable = new Order.CalculatedOrderDetailsDataTable();
     this.Adapter.Fill(dataTable);
     return dataTable;
 }
Exemplo n.º 2
0
 public virtual Order.CalculatedOrderDetailsDataTable GetData() {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     Order.CalculatedOrderDetailsDataTable dataTable = new Order.CalculatedOrderDetailsDataTable();
     this.Adapter.Fill(dataTable);
     return dataTable;
 }