Exemplo n.º 1
0
 public virtual CloudAccountDA.CreditItemDetailDataTable GetData()
 {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     CloudAccountDA.CreditItemDetailDataTable dataTable = new CloudAccountDA.CreditItemDetailDataTable();
     this.Adapter.Fill(dataTable);
     return(dataTable);
 }
Exemplo n.º 2
0
 public virtual int Fill(CloudAccountDA.CreditItemDetailDataTable dataTable)
 {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if (this.ClearBeforeFill)
     {
         dataTable.Clear();
     }
     return(this.Adapter.Fill(dataTable));
 }
Exemplo n.º 3
0
 public virtual CloudAccountDA.CreditItemDetailDataTable DeleteByItemID(int?ItemID)
 {
     this.Adapter.SelectCommand = this.CommandCollection[2];
     if (ItemID.HasValue)
     {
         this.Adapter.SelectCommand.Parameters[1].Value = ItemID.Value;
     }
     else
     {
         this.Adapter.SelectCommand.Parameters[1].Value = DBNull.Value;
     }
     CloudAccountDA.CreditItemDetailDataTable dataTable = new CloudAccountDA.CreditItemDetailDataTable();
     this.Adapter.Fill(dataTable);
     return(dataTable);
 }
Exemplo n.º 4
0
 public virtual int FillBy(CloudAccountDA.CreditItemDetailDataTable dataTable, int?ItemID)
 {
     this.Adapter.SelectCommand = this.CommandCollection[2];
     if (ItemID.HasValue)
     {
         this.Adapter.SelectCommand.Parameters[1].Value = ItemID.Value;
     }
     else
     {
         this.Adapter.SelectCommand.Parameters[1].Value = DBNull.Value;
     }
     if (this.ClearBeforeFill)
     {
         dataTable.Clear();
     }
     return(this.Adapter.Fill(dataTable));
 }
Exemplo n.º 5
0
 public virtual int Update(CloudAccountDA.CreditItemDetailDataTable dataTable)
 {
     return(this.Adapter.Update(dataTable));
 }