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; }
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; }