private void InternalReload() { roleIdLookup = new Dictionary <string, int>(); RoleCollection allRoles = RoleDataSource.LoadAll(); foreach (Role role in allRoles) { roleIdLookup[role.LoweredName] = role.RoleId; } }
/// <summary> /// Gets a list of all the roles for the configured applicationName. /// </summary> /// <returns>A string array containing the names of all the roles stored in the data source for the configured applicationName.</returns> public override string[] GetAllRoles() { RoleCollection roleCollection = RoleDataSource.LoadAll(); string[] allRoles = new string[roleCollection.Count]; for (int index = 0; index < roleCollection.Count; index++) { allRoles[index] = roleCollection[index].Name; } return(allRoles); }
public static RoleCollection LoadAll(int maximumRows, int startRowIndex) { return(RoleDataSource.LoadAll(maximumRows, startRowIndex, string.Empty)); }
public static RoleCollection LoadAll(string sortExpression) { return(RoleDataSource.LoadAll(0, 0, sortExpression)); }
public static RoleCollection LoadAll() { return(RoleDataSource.LoadAll(0, 0, string.Empty)); }