/// <summary> /// Selects records based on the passed filters as a collection (List) of RoleMaster. /// </summary> public static List <RoleMaster> SelectAllDynamicWhere(int?roleId, string roleDescription, DateTime?createdOn, string createdBy, DateTime?modifiedOn, string modifiedBy) { return(RoleMasterDataLayer.SelectAllDynamicWhere(roleId, roleDescription, createdOn, createdBy, modifiedOn, modifiedBy)); }
/// <summary> /// Selects records based on the passed filters as a collection (List) of RoleMaster sorted by the sort expression. /// </summary> public static List <RoleMaster> SelectAllDynamicWhere(int?roleId, string roleDescription, DateTime?createdOn, string createdBy, DateTime?modifiedOn, string modifiedBy, string sortByExpression) { List <RoleMaster> objRoleMasterCol = RoleMasterDataLayer.SelectAllDynamicWhere(roleId, roleDescription, createdOn, createdBy, modifiedOn, modifiedBy); return(SortByExpression(objRoleMasterCol, sortByExpression)); }
/// <summary> /// Selects all records as a collection (List) of RoleMaster /// </summary> public static List <RoleMaster> SelectAll() { return(RoleMasterDataLayer.SelectAll()); }
/// <summary> /// Selects all records as a collection (List) of RoleMaster sorted by the sort expression /// </summary> public static List <RoleMaster> SelectAll(string sortByExpression) { List <RoleMaster> objRoleMasterCol = RoleMasterDataLayer.SelectAll(); return(SortByExpression(objRoleMasterCol, sortByExpression)); }
/// <summary> /// Selects records as a collection (List) of RoleMaster sorted by the sortByExpression and returns the rows (# of records) starting from the startRowIndex /// </summary> public static List <RoleMaster> SelectSkipAndTake(int rows, int startRowIndex, string sortByExpression) { sortByExpression = GetSortExpression(sortByExpression); return(RoleMasterDataLayer.SelectSkipAndTake(sortByExpression, startRowIndex, rows)); }
/// <summary> /// Selects records as a collection (List) of RoleMaster sorted by the sortByExpression starting from the startRowIndex, based on the search parameters /// </summary> public static List <RoleMaster> SelectSkipAndTakeDynamicWhere(int?roleId, string roleDescription, DateTime?createdOn, string createdBy, DateTime?modifiedOn, string modifiedBy, int rows, int startRowIndex, string sortByExpression) { sortByExpression = GetSortExpression(sortByExpression); return(RoleMasterDataLayer.SelectSkipAndTakeDynamicWhere(roleId, roleDescription, createdOn, createdBy, modifiedOn, modifiedBy, sortByExpression, startRowIndex, rows)); }
/// <summary> /// Gets the total number of records in the RoleMaster table /// </summary> public static int GetRecordCount() { return(RoleMasterDataLayer.GetRecordCount()); }
/// <summary> /// Gets the total number of records in the RoleMaster table based on search parameters /// </summary> public static int GetRecordCountDynamicWhere(int?roleId, string roleDescription, DateTime?createdOn, string createdBy, DateTime?modifiedOn, string modifiedBy) { return(RoleMasterDataLayer.GetRecordCountDynamicWhere(roleId, roleDescription, createdOn, createdBy, modifiedOn, modifiedBy)); }
/// <summary> /// Selects a record by primary key(s) /// </summary> public static RoleMaster SelectByPrimaryKey(int roleId) { return(RoleMasterDataLayer.SelectByPrimaryKey(roleId)); }
/// <summary> /// Deletes a record based on primary key(s) /// </summary> public static void Delete(int roleId) { RoleMasterDataLayer.Delete(roleId); }
/// <summary> /// Updates a record /// </summary> public void Update() { RoleMaster objRoleMaster = (RoleMaster)this; RoleMasterDataLayer.Update(objRoleMaster); }
/// <summary> /// Inserts a record /// </summary> public int Insert() { RoleMaster objRoleMaster = (RoleMaster)this; return(RoleMasterDataLayer.Insert(objRoleMaster)); }
/// <summary> /// Selects RoleId and CreatedBy columns for use with a DropDownList web control, ComboBox, CheckedBoxList, ListView, ListBox, etc /// </summary> public static List <RoleMaster> SelectRoleMasterDropDownListData() { return(RoleMasterDataLayer.SelectRoleMasterDropDownListData()); }