View Source
Interface IMemberRepository
Assembly: Umbraco.Core.dll
Syntax
public interface IMemberRepository : IContentRepository<int, IMember>, IReadWriteQueryRepository<int, IMember>, IReadRepository<int, IMember>, IWriteRepository<IMember>, IQueryRepository<IMember>, IRepository
Methods
View Source
Exists(string)
Checks if a member with the username exists
Declaration
bool Exists(string username)
Parameters
| Type |
Name |
Description |
| string |
username |
|
Returns
View Source
FindMembersInRole(string, string, StringPropertyMatchType)
Finds members in a given role
Declaration
IEnumerable<IMember> FindMembersInRole(string roleName, string usernameToMatch, StringPropertyMatchType matchType = StringPropertyMatchType.StartsWith)
Parameters
Returns
| Type |
Description |
| IEnumerable<IMember> |
|
View Source
GetByMemberGroup(string)
Get all members in a specific group
Declaration
IEnumerable<IMember> GetByMemberGroup(string groupName)
Parameters
| Type |
Name |
Description |
| string |
groupName |
|
Returns
| Type |
Description |
| IEnumerable<IMember> |
|
View Source
GetByUsername(string?)
Declaration
IMember? GetByUsername(string? username)
Parameters
| Type |
Name |
Description |
| string |
username |
|
Returns
View Source
GetCountByQuery(IQuery<IMember>?)
Gets the count of items based on a complex query
Declaration
int GetCountByQuery(IQuery<IMember>? query)
Parameters
Returns
View Source
GetMemberIds(string[])
Declaration
int[] GetMemberIds(string[] names)
Parameters
| Type |
Name |
Description |
| string[] |
names |
|
Returns
View Source
GetPagedByFilterAsync(MemberFilter, int, int, Ordering?)
Declaration
Task<PagedModel<IMember>> GetPagedByFilterAsync(MemberFilter memberFilter, int skip, int take, Ordering? ordering = null)
Parameters
Returns
View Source
UpdateLoginPropertiesAsync(IMember)
Saves only the properties related to login for the member, using an optimized, non-locking update.
Declaration
Task UpdateLoginPropertiesAsync(IMember member)
Parameters
| Type |
Name |
Description |
| IMember |
member |
The member to update.
|
Returns
| Type |
Description |
| Task |
Used to avoid the full save of the member object after a login operation.
|