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