Ejemplo n.º 1
0
 public virtual int GetChild(dsWorkFLowDetail.tblWorkFlowDataTable dataTable, global::System.Nullable<int> ParentID) {
     this.Adapter.SelectCommand = this.CommandCollection[1];
     if ((ParentID.HasValue == true)) {
         this.Adapter.SelectCommand.Parameters[0].Value = ((int)(ParentID.Value));
     }
     else {
         this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
Ejemplo n.º 2
0
 public virtual int Fill(dsWorkFLowDetail.tblWorkFlowDataTable dataTable, int ID) {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     this.Adapter.SelectCommand.Parameters[0].Value = ((int)(ID));
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }