Show / Hide Table of Contents

Class IdentityDbContext

Base class for the Entity Framework database context used for identity.

Inheritance
Object
Microsoft.EntityFrameworkCore.DbContext
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext<IdentityUser, System.Guid, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>>
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<IdentityUser, IdentityRole, System.Guid, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>, Microsoft.AspNetCore.Identity.IdentityUserRole<System.Guid>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>, Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.Guid>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>>
IdentityDbContext<IdentityUser, IdentityRole, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>, IdentityAudit>
IdentityDbContext
Inherited Members
IdentityDbContext<IdentityUser, IdentityRole, IdentityUserLogin<Guid>, IdentityAudit>.Audits
IdentityDbContext<IdentityUser, IdentityRole, IdentityUserLogin<Guid>, IdentityAudit>.OnModelCreating(ModelBuilder)
IdentityDbContext<IdentityUser, IdentityRole, IdentityUserLogin<Guid>, IdentityAudit>.Schema
IdentityDbContext<IdentityUser, IdentityRole, IdentityUserLogin<Guid>, IdentityAudit>.BuildUser(ModelBuilder, PersonalDataConverter, Boolean)
IdentityDbContext<IdentityUser, IdentityRole, IdentityUserLogin<Guid>, IdentityAudit>.BuildRole(ModelBuilder, Boolean)
IdentityDbContext<IdentityUser, IdentityRole, IdentityUserLogin<Guid>, IdentityAudit>.BuildAudit(ModelBuilder)
IdentityDbContext<IdentityUser, IdentityRole, IdentityUserLogin<Guid>, IdentityAudit>.BuildUserClaim(ModelBuilder)
IdentityDbContext<IdentityUser, IdentityRole, IdentityUserLogin<Guid>, IdentityAudit>.BuildRoleClaim(ModelBuilder)
IdentityDbContext<IdentityUser, IdentityRole, IdentityUserLogin<Guid>, IdentityAudit>.BuildUserRole(ModelBuilder)
IdentityDbContext<IdentityUser, IdentityRole, IdentityUserLogin<Guid>, IdentityAudit>.BuildUserLogin(ModelBuilder)
IdentityDbContext<IdentityUser, IdentityRole, IdentityUserLogin<Guid>, IdentityAudit>.BuildUserToken(ModelBuilder)
IdentityDbContext<IdentityUser, IdentityRole, Guid, IdentityUserClaim<Guid>, IdentityUserRole<Guid>, IdentityUserLogin<Guid>, IdentityRoleClaim<Guid>, IdentityUserToken<Guid>>.OnModelCreating(ModelBuilder)
IdentityDbContext<IdentityUser, IdentityRole, Guid, IdentityUserClaim<Guid>, IdentityUserRole<Guid>, IdentityUserLogin<Guid>, IdentityRoleClaim<Guid>, IdentityUserToken<Guid>>.UserRoles
IdentityDbContext<IdentityUser, IdentityRole, Guid, IdentityUserClaim<Guid>, IdentityUserRole<Guid>, IdentityUserLogin<Guid>, IdentityRoleClaim<Guid>, IdentityUserToken<Guid>>.Roles
IdentityDbContext<IdentityUser, IdentityRole, Guid, IdentityUserClaim<Guid>, IdentityUserRole<Guid>, IdentityUserLogin<Guid>, IdentityRoleClaim<Guid>, IdentityUserToken<Guid>>.RoleClaims
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext<IRM.AspNetCore.Identity.IdentityUser, System.Guid, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>>.OnModelCreating(Microsoft.EntityFrameworkCore.ModelBuilder)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext<IRM.AspNetCore.Identity.IdentityUser, System.Guid, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>>.Users
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext<IRM.AspNetCore.Identity.IdentityUser, System.Guid, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>>.UserClaims
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext<IRM.AspNetCore.Identity.IdentityUser, System.Guid, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>>.UserLogins
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext<IRM.AspNetCore.Identity.IdentityUser, System.Guid, Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>, Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>, Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>>.UserTokens
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.OnModelCreating(Microsoft.EntityFrameworkCore.ModelBuilder)
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 IdentityDbContext : IdentityDbContext<IdentityUser, IdentityRole, IdentityUserLogin<Guid>, IdentityAudit>, IDisposable, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbQueryCache, IDbContextPoolable, IDbContextWithSchema

Constructors

IdentityDbContext()

Initializes a new instance of the IdentityDbContext class.

Declaration
protected IdentityDbContext()

IdentityDbContext(DbContextOptions)

Initializes a new instance of the IdentityDbContext class.

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

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

IdentityDbContext(DbContextOptions<IdentityDbContext>)

Initializes a new instance of the IdentityDbContext class.

Declaration
public IdentityDbContext(DbContextOptions<IdentityDbContext> options)
Parameters
Microsoft.EntityFrameworkCore.DbContextOptions<IdentityDbContext> options

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

Extension Methods

IdentityDbContextExtensions.EnsureSeedData(IdentityDbContext)
Back to top Generated by DocFX