View Source
Class MemberRepository
Represents a repository for doing CRUD operations for IMember
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public class MemberRepository : ContentRepositoryBase<int, IMember, MemberRepository>, IMemberRepository, IContentRepository<int, IMember>, IReadWriteQueryRepository<int, IMember>, IReadRepository<int, IMember>, IWriteRepository<IMember>, IQueryRepository<IMember>, IRepository
Constructors
View Source
MemberRepository(IScopeAccessor, AppCaches, ILogger<MemberRepository>, IMemberTypeRepository, IMemberGroupRepository, ITagRepository, ILanguageRepository, IRelationRepository, IRelationTypeRepository, IPasswordHasher, PropertyEditorCollection, DataValueReferenceFactoryCollection, IDataTypeService, IJsonSerializer, IEventAggregator, IOptions<MemberPasswordConfigurationSettings>)
Declaration
public MemberRepository(IScopeAccessor scopeAccessor, AppCaches cache, ILogger<MemberRepository> logger, IMemberTypeRepository memberTypeRepository, IMemberGroupRepository memberGroupRepository, ITagRepository tagRepository, ILanguageRepository languageRepository, IRelationRepository relationRepository, IRelationTypeRepository relationTypeRepository, IPasswordHasher passwordHasher, PropertyEditorCollection propertyEditors, DataValueReferenceFactoryCollection dataValueReferenceFactories, IDataTypeService dataTypeService, IJsonSerializer serializer, IEventAggregator eventAggregator, IOptions<MemberPasswordConfigurationSettings> passwordConfiguration)
Parameters
Properties
View Source
NodeObjectTypeId
Declaration
protected override Guid NodeObjectTypeId { get; }
Property Value
View Source
RecycleBinId
Declaration
public override int RecycleBinId { get; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
This
Declaration
protected override MemberRepository This { get; }
Property Value
Methods
View Source
ApplySystemOrdering(ref Sql<ISqlContext>, Ordering)
Declaration
protected override string ApplySystemOrdering(ref Sql<ISqlContext> sql, Ordering ordering)
Parameters
Returns
Type |
Description |
System.String |
|
View Source
Exists(String)
Declaration
public bool Exists(string username)
Parameters
Type |
Name |
Description |
System.String |
username |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
FindMembersInRole(String, String, StringPropertyMatchType)
Declaration
public IEnumerable<IMember> FindMembersInRole(string roleName, string usernameToMatch, StringPropertyMatchType matchType = StringPropertyMatchType.StartsWith)
Parameters
Returns
Type |
Description |
IEnumerable<IMember> |
|
View Source
GetAllVersions(Int32)
Declaration
public override IEnumerable<IMember> GetAllVersions(int nodeId)
Parameters
Type |
Name |
Description |
System.Int32 |
nodeId |
|
Returns
Type |
Description |
IEnumerable<IMember> |
|
View Source
GetBaseQuery(Boolean)
Declaration
protected override Sql<ISqlContext> GetBaseQuery(bool isCount)
Parameters
Type |
Name |
Description |
System.Boolean |
isCount |
|
Returns
View Source
GetBaseQuery(QueryType)
Declaration
protected override Sql<ISqlContext> GetBaseQuery(QueryType queryType)
Parameters
Returns
View Source
GetBaseQuery(QueryType, Boolean)
Declaration
protected virtual Sql<ISqlContext> GetBaseQuery(QueryType queryType, bool current)
Parameters
Type |
Name |
Description |
QueryType |
queryType |
|
System.Boolean |
current |
|
Returns
View Source
GetBaseWhereClause()
Declaration
protected override string GetBaseWhereClause()
Returns
Type |
Description |
System.String |
|
View Source
GetByMemberGroup(String)
Get all members in a specific group
Declaration
public IEnumerable<IMember> GetByMemberGroup(string groupName)
Parameters
Type |
Name |
Description |
System.String |
groupName |
|
Returns
Type |
Description |
IEnumerable<IMember> |
|
View Source
GetByUsername(String)
Declaration
public IMember GetByUsername(string username)
Parameters
Type |
Name |
Description |
System.String |
username |
|
Returns
View Source
GetCountByQuery(IQuery<IMember>)
Declaration
public int GetCountByQuery(IQuery<IMember> query)
Parameters
Returns
Type |
Description |
System.Int32 |
|
View Source
GetDeleteClauses()
Declaration
protected override IEnumerable<string> GetDeleteClauses()
Returns
Type |
Description |
IEnumerable<System.String> |
|
View Source
GetMemberIds(String[])
Declaration
public int[] GetMemberIds(string[] usernames)
Parameters
Type |
Name |
Description |
System.String[] |
usernames |
|
Returns
Type |
Description |
System.Int32[] |
|
View Source
GetNodeIdQueryWithPropertyData()
Declaration
protected Sql<ISqlContext> GetNodeIdQueryWithPropertyData()
Returns
View Source
GetPage(IQuery<IMember>, Int64, Int32, out Int64, IQuery<IMember>, Ordering)
Gets paged member results.
Declaration
public override IEnumerable<IMember> GetPage(IQuery<IMember> query, long pageIndex, int pageSize, out long totalRecords, IQuery<IMember> filter, Ordering ordering)
Parameters
Returns
Type |
Description |
IEnumerable<IMember> |
|
View Source
GetVersion(Int32)
Declaration
public override IMember GetVersion(int versionId)
Parameters
Type |
Name |
Description |
System.Int32 |
versionId |
|
Returns
View Source
Declaration
protected override void PerformDeleteVersion(int id, int versionId)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Int32 |
versionId |
|
View Source
Declaration
protected override IMember PerformGet(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
Declaration
protected override IEnumerable<IMember> PerformGetAll(params int[] ids)
Parameters
Type |
Name |
Description |
System.Int32[] |
ids |
|
Returns
Type |
Description |
IEnumerable<IMember> |
|
View Source
Declaration
protected override IEnumerable<IMember> PerformGetByQuery(IQuery<IMember> query)
Parameters
Returns
Type |
Description |
IEnumerable<IMember> |
|
View Source
PersistNewItem(IMember)
Declaration
protected override void PersistNewItem(IMember entity)
Parameters
Type |
Name |
Description |
IMember |
entity |
|
View Source
PersistUpdatedItem(IMember)
Declaration
protected override void PersistUpdatedItem(IMember entity)
Parameters
Type |
Name |
Description |
IMember |
entity |
|