IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken,TUserPasskey> 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.
Base class for the Entity Framework database context used for identity.
public abstract class IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken,TUserPasskey> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken,TUserPasskey> where TUser : IdentityUser<TKey> where TRole : IdentityRole<TKey> where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey> where TUserRole : IdentityUserRole<TKey> where TUserLogin : IdentityUserLogin<TKey> where TRoleClaim : IdentityRoleClaim<TKey> where TUserToken : IdentityUserToken<TKey> where TUserPasskey : IdentityUserPasskey<TKey>
type IdentityDbContext<'User, 'Role, 'Key, 'UserClaim, 'UserRole, 'UserLogin, 'RoleClaim, 'UserToken, 'UserPasskey (requires 'User :> IdentityUser<'Key> and 'Role :> IdentityRole<'Key> and 'Key :> IEquatable<'Key> and 'UserClaim :> IdentityUserClaim<'Key> and 'UserRole :> IdentityUserRole<'Key> and 'UserLogin :> IdentityUserLogin<'Key> and 'RoleClaim :> IdentityRoleClaim<'Key> and 'UserToken :> IdentityUserToken<'Key> and 'UserPasskey :> IdentityUserPasskey<'Key>)> = class
inherit IdentityUserContext<'User, 'Key, 'UserClaim, 'UserLogin, 'UserToken, 'UserPasskey (requires 'User :> IdentityUser<'Key> and 'Key :> IEquatable<'Key> and 'UserClaim :> IdentityUserClaim<'Key> and 'UserLogin :> IdentityUserLogin<'Key> and 'UserToken :> IdentityUserToken<'Key> and 'UserPasskey :> IdentityUserPasskey<'Key>)>
Public MustInherit Class IdentityDbContext(Of TUser, TRole, TKey, TUserClaim, TUserRole, TUserLogin, TRoleClaim, TUserToken, TUserPasskey)
Inherits IdentityUserContext(Of TUser, TKey, TUserClaim, TUserLogin, TUserToken, TUserPasskey)
Type Parameters
- TUser
The type of user objects.
- TRole
The type of role objects.
- TKey
The type of the primary key for users and roles.
- TUserClaim
The type of the user claim object.
- TUserRole
The type of the user role object.
- TUserLogin
The type of the user login object.
- TRoleClaim
The type of the role claim object.
- TUserToken
The type of the user token object.
- TUserPasskey
The type of the user token object.
- Inheritance
-
IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken,TUserPasskey>
Constructors
IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken,TUserPasskey>() |
Initializes a new instance of the class. |
IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken,TUserPasskey>(DbContextOptions) |
Initializes a new instance of the class. |
Properties
Methods
OnModelCreating(ModelBuilder) |
Configures the schema needed for the identity framework. |