/// <summary> /// Gets a collection of all the users in the database. /// </summary> /// <returns>Returns a collection of all the users in the database.</returns> public static List <UserEntity> GetAllUsers() { List <UserEntity> users = new List <UserEntity>(); int totalRecords; foreach (MembershipUser user in MembershipGsp.GetAllUsers(0, 0x7fffffff, out totalRecords)) { users.Add(ToUserEntity(user)); } return(users); }