Ejemplo n.º 1
0
 public virtual int GetChild(DSWorkFlow.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(DSWorkFlow.tblWorkFlowDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }