ApiAuthorizationDbContext<TUser> Class

Definition

Database abstraction for a combined DbContext using ASP.NET Identity and Identity Server.

generic <typename TUser>
 where TUser : IdentityUserpublic ref class ApiAuthorizationDbContext : Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityDbContext<TUser>, IdentityServer4::EntityFramework::Interfaces::IPersistedGrantDbContext, IDisposable
public class ApiAuthorizationDbContext<TUser> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<TUser>, IdentityServer4.EntityFramework.Interfaces.IPersistedGrantDbContext, IDisposable where TUser : IdentityUser
public class ApiAuthorizationDbContext<TUser> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext<TUser>, Duende.IdentityServer.EntityFramework.Interfaces.IPersistedGrantDbContext, IDisposable where TUser : IdentityUser
type ApiAuthorizationDbContext<'User (requires 'User :> IdentityUser)> = class
    inherit IdentityDbContext<'User (requires 'User :> IdentityUser)>
    interface IPersistedGrantDbContext
    interface IDisposable
Public Class ApiAuthorizationDbContext(Of TUser)
Inherits IdentityDbContext(Of TUser)
Implements IDisposable, IPersistedGrantDbContext

Type Parameters

TUser
Inheritance
Implements
IdentityServer4.EntityFramework.Interfaces.IPersistedGrantDbContext IDisposable Duende.IdentityServer.EntityFramework.Interfaces.IPersistedGrantDbContext

Constructors

ApiAuthorizationDbContext<TUser>(DbContextOptions, IOptions<OperationalStoreOptions>)

Initializes a new instance of ApiAuthorizationDbContext<TUser>.

ApiAuthorizationDbContext<TUser>(DbContextOptions, IOptions<OperationalStoreOptions>)

Initializes a new instance of ApiAuthorizationDbContext<TUser>.

Properties

DeviceFlowCodes

Gets or sets the DbSet<TEntity>.

Keys

Gets or sets the DbSet<TEntity>.

PersistedGrants

Gets or sets the DbSet<TEntity>.

RoleClaims

Gets or sets the DbSet<TEntity> of role claims.

(Inherited from IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
Roles

Gets or sets the DbSet<TEntity> of roles.

(Inherited from IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
SchemaVersion

Gets the schema version used for versioning.

(Inherited from IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken>)
UserClaims

Gets or sets the DbSet<TEntity> of User claims.

(Inherited from IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
UserLogins

Gets or sets the DbSet<TEntity> of User logins.

(Inherited from IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
UserRoles

Gets or sets the DbSet<TEntity> of User roles.

(Inherited from IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
Users

Gets or sets the DbSet<TEntity> of Users.

(Inherited from IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
UserTokens

Gets or sets the DbSet<TEntity> of User tokens.

(Inherited from IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)

Methods

OnModelCreating(ModelBuilder)

Configures the schema needed for the identity framework.

Explicit Interface Implementations

IPersistedGrantDbContext.SaveChangesAsync()
IPersistedGrantDbContext.SaveChangesAsync()

Applies to