/// <summary> /// Selects records based on the passed filters as a collection (List) of Couse. /// </summary> public static List <Couse> SelectAllDynamicWhere(int?couseid, string couseName, DateTime?courseStartDate, DateTime?courseEndDate, Int64?couseFees) { return(CouseDataLayer.SelectAllDynamicWhere(couseid, couseName, courseStartDate, courseEndDate, couseFees)); }
/// <summary> /// Selects records based on the passed filters as a collection (List) of Couse sorted by the sort expression. /// </summary> public static List <Couse> SelectAllDynamicWhere(int?couseid, string couseName, DateTime?courseStartDate, DateTime?courseEndDate, Int64?couseFees, string sortByExpression) { List <Couse> objCouseCol = CouseDataLayer.SelectAllDynamicWhere(couseid, couseName, courseStartDate, courseEndDate, couseFees); return(SortByExpression(objCouseCol, sortByExpression)); }
/// <summary> /// Selects all records as a collection (List) of Couse /// </summary> public static List <Couse> SelectAll() { return(CouseDataLayer.SelectAll()); }
/// <summary> /// Selects all records as a collection (List) of Couse sorted by the sort expression /// </summary> public static List <Couse> SelectAll(string sortByExpression) { List <Couse> objCouseCol = CouseDataLayer.SelectAll(); return(SortByExpression(objCouseCol, sortByExpression)); }
/// <summary> /// Selects records as a collection (List) of Couse sorted by the sortByExpression and returns the rows (# of records) starting from the startRowIndex /// </summary> public static List <Couse> SelectSkipAndTake(int rows, int startRowIndex, string sortByExpression) { sortByExpression = GetSortExpression(sortByExpression); return(CouseDataLayer.SelectSkipAndTake(sortByExpression, startRowIndex, rows)); }
/// <summary> /// Selects records as a collection (List) of Couse sorted by the sortByExpression starting from the startRowIndex, based on the search parameters /// </summary> public static List <Couse> SelectSkipAndTakeDynamicWhere(int?couseid, string couseName, DateTime?courseStartDate, DateTime?courseEndDate, Int64?couseFees, int rows, int startRowIndex, string sortByExpression) { sortByExpression = GetSortExpression(sortByExpression); return(CouseDataLayer.SelectSkipAndTakeDynamicWhere(couseid, couseName, courseStartDate, courseEndDate, couseFees, sortByExpression, startRowIndex, rows)); }
/// <summary> /// Gets the total number of records in the Couse table /// </summary> public static int GetRecordCount() { return(CouseDataLayer.GetRecordCount()); }
/// <summary> /// Gets the total number of records in the Couse table based on search parameters /// </summary> public static int GetRecordCountDynamicWhere(int?couseid, string couseName, DateTime?courseStartDate, DateTime?courseEndDate, Int64?couseFees) { return(CouseDataLayer.GetRecordCountDynamicWhere(couseid, couseName, courseStartDate, courseEndDate, couseFees)); }
/// <summary> /// Selects a record by primary key(s) /// </summary> public static Couse SelectByPrimaryKey(int couseid) { return(CouseDataLayer.SelectByPrimaryKey(couseid)); }
/// <summary> /// Deletes a record based on primary key(s) /// </summary> public static void Delete(int couseid) { CouseDataLayer.Delete(couseid); }
/// <summary> /// Updates a record /// </summary> public void Update() { Couse objCouse = (Couse)this; CouseDataLayer.Update(objCouse); }
/// <summary> /// Inserts a record /// </summary> public int Insert() { Couse objCouse = (Couse)this; return(CouseDataLayer.Insert(objCouse)); }
/// <summary> /// Selects Couseid and CouseName columns for use with a DropDownList web control, ComboBox, CheckedBoxList, ListView, ListBox, etc /// </summary> public static List <Couse> SelectCouseDropDownListData() { return(CouseDataLayer.SelectCouseDropDownListData()); }