ApiAuthorizationDbContext<TUser> Třída
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Abstrakce databáze pro kombinaci DbContext pomocí ASP.NET identity a serveru identit
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
Parametry typu
- TUser
- Dědičnost
-
IdentityDbContext<TUser,TRole,TKey,IdentityUserClaim<TKey>,IdentityUserRole<TKey>,IdentityUserLogin<TKey>,IdentityRoleClaim<TKey>,IdentityUserToken<TKey>>ApiAuthorizationDbContext<TUser>
- Implementuje
-
IdentityServer4.EntityFramework.Interfaces.IPersistedGrantDbContext IDisposable Duende.IdentityServer.EntityFramework.Interfaces.IPersistedGrantDbContext
Konstruktory
| ApiAuthorizationDbContext<TUser>(DbContextOptions, IOptions<OperationalStoreOptions>) |
Inicializuje novou instanci .ApiAuthorizationDbContext<TUser> |
| ApiAuthorizationDbContext<TUser>(DbContextOptions, IOptions<OperationalStoreOptions>) |
Inicializuje novou instanci .ApiAuthorizationDbContext<TUser> |
Vlastnosti
Metody
| OnModelCreating(ModelBuilder) |
Nakonfiguruje schéma potřebné pro architekturu identit. |
Explicitní implementace rozhraní
| IPersistedGrantDbContext.SaveChangesAsync() | |
| IPersistedGrantDbContext.SaveChangesAsync() |