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