internal static List <DutyCompetencyKSALog> GetCollection(DataTable dataItems) { List <DutyCompetencyKSALog> listCollection = new List <DutyCompetencyKSALog>(); DutyCompetencyKSALog current = null; if (dataItems != null) { for (int i = 0; i < dataItems.Rows.Count; i++) { current = new DutyCompetencyKSALog(dataItems.Rows[i]); listCollection.Add(current); } } else { throw new Exception("You cannot create a DutyCompetencyKSALog collection from a null data table."); } return(listCollection); }
public List <DutyCompetencyKSALog> GetDutyCompetencyKSADeletedDuringReview() { List <DutyCompetencyKSALog> childDataCollection = null; if (base.ValidateKeyField(this._dutyID)) { try { DataTable dt = ExecuteDataTable("dbo.spr_GetDeletedDraftDutyQualifications", this._dutyID); // fill collection list childDataCollection = DutyCompetencyKSALog.GetCollection(dt); } catch (Exception ex) { HandleException(ex); } } return(childDataCollection); }
/// <summary> /// Determines whether the specified System.Object is equal to the current object. /// </summary> /// <param name="obj">The System.Object to compare with the current object.</param> /// <returns>Returns true if the specified System.Object is equal to the current object; otherwise, false.</returns> public override bool Equals(Object obj) { DutyCompetencyKSALog DutyCompetencyKSALogobj = obj as DutyCompetencyKSALog; return((DutyCompetencyKSALogobj == null) ? false : (this.DutyCompetencyKSALogID == DutyCompetencyKSALogobj.DutyCompetencyKSALogID)); }