Show / Hide Table of Contents

Class UserSearchDbContext<TUser, TPerson>

Base class for the Entity Framework database context used for listning and searching of users.

Inheritance
Object
Microsoft.EntityFrameworkCore.DbContext
UserSearchDbContext<TUser, TPerson>
Inherited Members
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbSetCache.GetOrAddSet(Microsoft.EntityFrameworkCore.Internal.IDbSetSource, System.Type)
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbQueryCache.GetOrAddQuery(Microsoft.EntityFrameworkCore.Internal.IDbQuerySource, System.Type)
Microsoft.EntityFrameworkCore.DbContext.Set<TEntity>()
Microsoft.EntityFrameworkCore.DbContext.Query<TQuery>()
Microsoft.EntityFrameworkCore.DbContext.OnConfiguring(Microsoft.EntityFrameworkCore.DbContextOptionsBuilder)
Microsoft.EntityFrameworkCore.DbContext.SaveChanges()
DbContext.SaveChanges(Boolean)
Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(System.Threading.CancellationToken)
DbContext.SaveChangesAsync(Boolean, CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.SetPool(Microsoft.EntityFrameworkCore.Internal.IDbContextPool)
DbContext.IDbContextPoolable.SnapshotConfiguration()
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.Resurrect(Microsoft.EntityFrameworkCore.Internal.DbContextPoolConfigurationSnapshot)
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.ResetState()
Microsoft.EntityFrameworkCore.DbContext.Dispose()
Microsoft.EntityFrameworkCore.DbContext.Entry<TEntity>(TEntity)
DbContext.Entry(Object)
Microsoft.EntityFrameworkCore.DbContext.Add<TEntity>(TEntity)
Microsoft.EntityFrameworkCore.DbContext.AddAsync<TEntity>(TEntity, System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.Attach<TEntity>(TEntity)
Microsoft.EntityFrameworkCore.DbContext.Update<TEntity>(TEntity)
Microsoft.EntityFrameworkCore.DbContext.Remove<TEntity>(TEntity)
DbContext.Add(Object)
Microsoft.EntityFrameworkCore.DbContext.AddAsync(System.Object, System.Threading.CancellationToken)
DbContext.Attach(Object)
Microsoft.EntityFrameworkCore.DbContext.Update(System.Object)
Microsoft.EntityFrameworkCore.DbContext.Remove(System.Object)
DbContext.AddRange(Object[])
Microsoft.EntityFrameworkCore.DbContext.AddRangeAsync(System.Object[])
Microsoft.EntityFrameworkCore.DbContext.AttachRange(System.Object[])
DbContext.UpdateRange(Object[])
DbContext.RemoveRange(Object[])
Microsoft.EntityFrameworkCore.DbContext.AddRange(System.Collections.Generic.IEnumerable<System.Object>)
DbContext.AddRangeAsync(IEnumerable<Object>, CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.AttachRange(System.Collections.Generic.IEnumerable<System.Object>)
Microsoft.EntityFrameworkCore.DbContext.UpdateRange(System.Collections.Generic.IEnumerable<System.Object>)
Microsoft.EntityFrameworkCore.DbContext.RemoveRange(System.Collections.Generic.IEnumerable<System.Object>)
DbContext.Find(Type, Object[])
DbContext.FindAsync(Type, Object[])
Microsoft.EntityFrameworkCore.DbContext.FindAsync(System.Type, System.Object[], System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.Find<TEntity>(System.Object[])
Microsoft.EntityFrameworkCore.DbContext.FindAsync<TEntity>(System.Object[])
Microsoft.EntityFrameworkCore.DbContext.FindAsync<TEntity>(System.Object[], System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.Database
Microsoft.EntityFrameworkCore.DbContext.ChangeTracker
DbContext.Model
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.SetSource
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.QuerySource
DbContext.IDbContextDependencies.EntityFinderFactory
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.QueryProvider
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.StateManager
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.ChangeDetector
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.EntityGraphAttacher
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.UpdateLogger
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.InfrastructureLogger
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<System.IServiceProvider>.Instance
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 UserSearchDbContext<TUser, TPerson> : DbContext, IDisposable, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbQueryCache, IDbContextPoolable, IUserSearchDbContext<TUser, TPerson>, IUserSearchDbContext where TUser : class where TPerson : class
Type Parameters
TUser

The type representing a user.

TPerson

The type representing a person.

Constructors

UserSearchDbContext(DbContextOptions)

Initializes a new instance of the UserSearchDbContext<TUser, TPerson> class.

Declaration
protected UserSearchDbContext(DbContextOptions options)
Parameters
Microsoft.EntityFrameworkCore.DbContextOptions options

The options to be used by a Microsoft.EntityFrameworkCore.DbContext.

UserSearchDbContext(DbContextOptions<UserSearchDbContext<TUser, TPerson>>)

Initializes a new instance of the UserSearchDbContext<TUser, TPerson> class.

Declaration
public UserSearchDbContext(DbContextOptions<UserSearchDbContext<TUser, TPerson>> options)
Parameters
Microsoft.EntityFrameworkCore.DbContextOptions<UserSearchDbContext<TUser, TPerson>> options

The options to be used by a Microsoft.EntityFrameworkCore.DbContext.

Properties

Organisations

Gets the DbSet<TEntity> of Organisations.

Declaration
public DbSet<ListOrganisation> Organisations { get; set; }
Property Value
DbSet<ListOrganisation>

Implements
IUserSearchDbContext<TUser, TPerson>.Organisations

Persons

Gets the DbSet<TEntity> of Persons.

Declaration
public DbSet<TPerson> Persons { get; set; }
Property Value
DbSet<TPerson>

Implements
IUserSearchDbContext<TUser, TPerson>.Persons

PersonSchema

Gets or sets the database schema name for the Person table.

Declaration
public string PersonSchema { get; set; }
Property Value
String

Implements
IUserSearchDbContext<TUser, TPerson>.PersonSchema

UserRoles

Gets the DbSet<TEntity> of user roles.

Declaration
public DbSet<IdentityUserRole<Guid>> UserRoles { get; set; }
Property Value
DbSet<Microsoft.AspNetCore.Identity.IdentityUserRole<System.Guid>>

Implements
IUserSearchDbContext<TUser, TPerson>.UserRoles

Users

Gets the DbSet<TEntity> of Users.

Declaration
public DbSet<TUser> Users { get; set; }
Property Value
DbSet<TUser>

Implements
IUserSearchDbContext<TUser, TPerson>.Users

UserSchema

Gets or sets the database schema name for the User table.

Declaration
public string UserSchema { get; set; }
Property Value
String

Implements
IUserSearchDbContext<TUser, TPerson>.UserSchema

Methods

BuildOrganisation(ModelBuilder)

Configures the schema needed for TPerson.

Declaration
protected virtual void BuildOrganisation(ModelBuilder builder)
Parameters
Microsoft.EntityFrameworkCore.ModelBuilder builder

The builder being used to construct the model for this context.

BuildPerson(ModelBuilder)

Configures the schema needed for TPerson.

Declaration
protected virtual void BuildPerson(ModelBuilder builder)
Parameters
Microsoft.EntityFrameworkCore.ModelBuilder builder

The builder being used to construct the model for this context.

BuildUser(ModelBuilder)

Configures the schema needed for TUser.

Declaration
protected virtual void BuildUser(ModelBuilder builder)
Parameters
Microsoft.EntityFrameworkCore.ModelBuilder builder

The builder being used to construct the model for this context.

BuildUserRole(ModelBuilder)

Configures the schema needed for UserRoles.

Declaration
protected virtual void BuildUserRole(ModelBuilder builder)
Parameters
Microsoft.EntityFrameworkCore.ModelBuilder builder

The builder being used to construct the model for this context.

OnModelCreating(ModelBuilder)

Declaration
protected override void OnModelCreating(ModelBuilder builder)
Parameters
Microsoft.EntityFrameworkCore.ModelBuilder builder

Overrides
Microsoft.EntityFrameworkCore.DbContext.OnModelCreating(Microsoft.EntityFrameworkCore.ModelBuilder)
Back to top Generated by DocFX