internal static List <PositionCompetencyKSALog> GetCollection(DataTable dataItems) { List <PositionCompetencyKSALog> listCollection = new List <PositionCompetencyKSALog>(); PositionCompetencyKSALog current = null; if (dataItems != null) { for (int i = 0; i < dataItems.Rows.Count; i++) { current = new PositionCompetencyKSALog(dataItems.Rows[i]); listCollection.Add(current); } } else { throw new Exception("You cannot create a PositionCompetencyKSALog collection from a null data table."); } return(listCollection); }
/// <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) { PositionCompetencyKSALog PositionCompetencyKSALogobj = obj as PositionCompetencyKSALog; return((PositionCompetencyKSALogobj == null) ? false : (this.PositionCompetencyKSALogID == PositionCompetencyKSALogobj.PositionCompetencyKSALogID)); }