ApiAuthorizationDbContext<TUser> Класс

Определение

Абстракция базы данных для совместного DbContext использования ASP.NET identity и 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

Параметры типа

TUser
Наследование
Реализации
IdentityServer4.EntityFramework.Interfaces.IPersistedGrantDbContext IDisposable Duende.IdentityServer.EntityFramework.Interfaces.IPersistedGrantDbContext

Конструкторы

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

Инициализирует новый экземпляр ApiAuthorizationDbContext<TUser>.

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

Инициализирует новый экземпляр ApiAuthorizationDbContext<TUser>.

Свойства

DeviceFlowCodes

Возвращает или задает класс DbSet<TEntity>.

Keys

Возвращает или задает класс DbSet<TEntity>.

PersistedGrants

Возвращает или задает класс DbSet<TEntity>.

RoleClaims

Возвращает или задает DbSet<TEntity> значение для утверждений роли.

(Унаследовано от IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
Roles

Возвращает или задает значение DbSet<TEntity> ролей.

(Унаследовано от IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
SchemaVersion

Возвращает версию схемы, используемую для управления версиями.

(Унаследовано от IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken>)
UserClaims

Возвращает или задает DbSet<TEntity> значение для утверждений пользователя.

(Унаследовано от IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
UserLogins

Возвращает или задает значение DbSet<TEntity> для имен входа пользователя.

(Унаследовано от IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
UserRoles

Возвращает или задает значение DbSet<TEntity> ролей пользователя.

(Унаследовано от IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
Users

Возвращает или задает объект DbSet<TEntity> Users.

(Унаследовано от IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)
UserTokens

Возвращает или задает DbSet<TEntity> маркеры пользователя.

(Унаследовано от IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>)

Методы

OnModelCreating(ModelBuilder)

Настраивает схему, необходимую для платформы удостоверений.

Явные реализации интерфейса

IPersistedGrantDbContext.SaveChangesAsync()

Абстракция базы данных для совместного DbContext использования ASP.NET identity и identity server.

IPersistedGrantDbContext.SaveChangesAsync()

Абстракция базы данных для совместного DbContext использования ASP.NET identity и identity server.

Применяется к