ApplicationDbContext¶
Namespace: Database.EntityFramework
public class ApplicationDbContext : Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext`1[[Database.EntityFramework.Models.ApiUser, Database, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure`1[[System.IServiceProvider, System.ComponentModel, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies, Microsoft.EntityFrameworkCore.Internal.IDbSetCache, Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable, Microsoft.EntityFrameworkCore.Infrastructure.IResettableService, System.IDisposable, System.IAsyncDisposable
Inheritance Object → DbContext → IdentityUserContext<ApiUser, String, IdentityUserClaim<String>, IdentityUserLogin<String>, IdentityUserToken<String>> → IdentityDbContext<ApiUser, IdentityRole, String, IdentityUserClaim<String>, IdentityUserRole<String>, IdentityUserLogin<String>, IdentityRoleClaim<String>, IdentityUserToken<String>> → IdentityDbContext<ApiUser, IdentityRole, String> → IdentityDbContext<ApiUser> → ApplicationDbContext
Implements IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbContextPoolable, IResettableService, IDisposable, IAsyncDisposable
Properties¶
ChangeTracker¶
Property Value¶
ChangeTracker
ContextId¶
Property Value¶
DbContextId
CoordinateMappings¶
Represents the collection of CoordinateMappings entities in the database.
Property Value¶
DbSet<CoordinateMapping>
Database¶
Property Value¶
DatabaseFacade
Model¶
Property Value¶
IModel
RoleClaims¶
Property Value¶
DbSet<IdentityRoleClaim<String>>
Roles¶
Property Value¶
DbSet<IdentityRole>
TokenInfos¶
Represents the collection of TokenInfo entities in the database.
Property Value¶
DbSet<TokenInfo>
TopicSettings¶
Represents the collection of TopicSetting entities in the database.
Property Value¶
DbSet<TopicSetting>
UserClaims¶
Property Value¶
DbSet<IdentityUserClaim<String>>
UserLogins¶
Property Value¶
DbSet<IdentityUserLogin<String>>
UserRoles¶
Property Value¶
DbSet<IdentityUserRole<String>>
Users¶
Property Value¶
DbSet<ApiUser>
UserTokens¶
Property Value¶
DbSet<IdentityUserToken<String>>
Constructors¶
ApplicationDbContext(DbContextOptions<ApplicationDbContext>)¶
Parameters¶
options
DbContextOptions<ApplicationDbContext>
Methods¶
ApplyMigration<TDbContext>(IServiceScope)¶
Applies any pending migrations for the specified DbContext.
Type Parameters¶
TDbContext
Parameters¶
scope
IServiceScope
OnModelCreating(ModelBuilder)¶
Parameters¶
modelBuilder
ModelBuilder