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 |
System.String |
username |
|
Returns
Type |
Description |
System.Boolean |
|
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 |
System.String |
groupName |
|
Returns
Type |
Description |
IEnumerable<IMember> |
|
View Source
GetByUsername(String)
Declaration
IMember GetByUsername(string username)
Parameters
Type |
Name |
Description |
System.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
Type |
Description |
System.Int32 |
|
View Source
GetMemberIds(String[])
Declaration
int[] GetMemberIds(string[] names)
Parameters
Type |
Name |
Description |
System.String[] |
names |
|
Returns
Type |
Description |
System.Int32[] |
|
View Source
GetPagedByFilterAsync(MemberFilter, Int32, Int32, Ordering)
Declaration
Task<PagedModel<IMember>> GetPagedByFilterAsync(MemberFilter memberFilter, int skip, int take, Ordering ordering = null)
Parameters
Type |
Name |
Description |
MemberFilter |
memberFilter |
|
System.Int32 |
skip |
|
System.Int32 |
take |
|
Ordering |
ordering |
|
Returns