ApiAuthorizationDbContext<TUser> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
-
IdentityDbContext<TUser,TRole,TKey,IdentityUserClaim<TKey>,IdentityUserRole<TKey>,IdentityUserLogin<TKey>,IdentityRoleClaim<TKey>,IdentityUserToken<TKey>>ApiAuthorizationDbContext<TUser>
- 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>) |
UserRoles |
Gets or sets the DbSet<TEntity> of User roles. (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() |