Show / Hide Table of Contents

Class MultitenantUserSearchStore<TListUser, TUser, TPerson, TContext>

Represents a persistence store for the combined user and person, used to list or search for users.

Inheritance
Object
UserSearchStore<TListUser, TUser, TPerson, TContext>
MultitenantUserSearchStore<TListUser, TUser, TPerson, TContext>
Inherited Members
UserSearchStore<TListUser, TUser, TPerson, TContext>.Context
UserSearchStore<TListUser, TUser, TPerson, TContext>.GetUsersInRoleAsync(UsersInRoleSearchQuery, CancellationToken)
UserSearchStore<TListUser, TUser, TPerson, TContext>.GetAllUsersAsync(UsersSearchQuery, CancellationToken)
UserSearchStore<TListUser, TUser, TPerson, TContext>.ReturnPagedResult(IQueryable<UserSearchStore.TempSearchResult<>>, Query)
UserSearchStore<TListUser, TUser, TPerson, TContext>.AddSearchTerms(IQueryable<UserSearchStore.TempSearchResult<>>, IUsersSearchQuery)
UserSearchStore<TListUser, TUser, TPerson, TContext>.AddSortingAndPageing(IQueryable<UserSearchStore.TempSearchResult<>>, Query)
UserSearchStore<TListUser, TUser, TPerson, TContext>.MapSearchResult(TPerson, ListOrganisation, TUser)
UserSearchStore<TListUser, TUser, TPerson, TContext>.ThrowIfDisposed()
UserSearchStore<TListUser, TUser, TPerson, TContext>.Dispose()
UserSearchStore<TListUser, TUser, TPerson, TContext>.Dispose(Boolean)
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.AspNetCore.Identity.EntityFrameworkCore
Assembly: IRM.AspNetCore.Identity.EntityFrameworkCore.dll
Syntax
public class MultitenantUserSearchStore<TListUser, TUser, TPerson, TContext> : UserSearchStore<TListUser, TUser, TPerson, TContext>, IUserSearchStore<TListUser>, IDisposable where TListUser : class, IListUser, new()
    where TUser : IdentityUser where TPerson : class, IPerson, IMultitenantEntity where TContext : DbContext, IUserSearchDbContext<TUser, TPerson>
Type Parameters
TListUser

The type representing a combined user and person.

TUser

The type representing a user.

TPerson

The type representing a person.

TContext

The type of the data context class used to access the store.

Constructors

MultitenantUserSearchStore(TContext, ITenantAccessor)

Creates a new instance of MultitenantUserSearchStore<TListUser, TUser, TPerson, TContext>.

Declaration
public MultitenantUserSearchStore(TContext context, ITenantAccessor tenantAccessor)
Parameters
TContext context

The context used to access the store.

ITenantAccessor tenantAccessor

The accessor used to access the identity of the current tenant.

Methods

GetAllUsersAsync(UsersSearchQuery, CancellationToken)

Gets all users that matches the supplied query.

Declaration
public override Task<QueryResult<TListUser>> GetAllUsersAsync(UsersSearchQuery query, CancellationToken cancellationToken = default(CancellationToken))
Parameters
UsersSearchQuery query

The query describing filtering and sorting for the users.

System.Threading.CancellationToken cancellationToken

The System.Threading.CancellationToken used to propagate notifications that the operation should be canceled.

Returns
System.Threading.Tasks.Task<QueryResult<TListUser>>

A QueryResult<T> with a collection of users matching the supplied query.

Overrides
IRM.AspNetCore.Identity.EntityFrameworkCore.UserSearchStore<TListUser, TUser, TPerson, TContext>.GetAllUsersAsync(IRM.AspNetCore.Identity.UsersSearchQuery, System.Threading.CancellationToken)
Back to top Generated by DocFX