IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken> 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.
generic <typename TUser, typename TKey, typename TUserClaim, typename TUserLogin, typename TUserToken>
where TUser : IdentityUser<TKey> where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey> where TUserLogin : IdentityUserLogin<TKey> where TUserToken : IdentityUserToken<TKey>public ref class IdentityUserContext abstract : Microsoft::EntityFrameworkCore::DbContext
public class IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken,Microsoft.AspNetCore.Identity.IdentityUserPasskey<TKey>> where TUser : IdentityUser<TKey> where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey> where TUserLogin : IdentityUserLogin<TKey> where TUserToken : IdentityUserToken<TKey>
public abstract class IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken> : Microsoft.EntityFrameworkCore.DbContext where TUser : IdentityUser<TKey> where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey> where TUserLogin : IdentityUserLogin<TKey> where TUserToken : IdentityUserToken<TKey>
type IdentityUserContext<'User, 'Key, 'UserClaim, 'UserLogin, 'UserToken (requires 'User :> IdentityUser<'Key> and 'Key :> IEquatable<'Key> and 'UserClaim :> IdentityUserClaim<'Key> and 'UserLogin :> IdentityUserLogin<'Key> and 'UserToken :> IdentityUserToken<'Key>)> = class
inherit IdentityUserContext<'User, 'Key, 'UserClaim, 'UserLogin, 'UserToken, IdentityUserPasskey<'Key> (requires 'User :> IdentityUser<'Key> and 'Key :> IEquatable<'Key> and 'UserClaim :> IdentityUserClaim<'Key> and 'UserLogin :> IdentityUserLogin<'Key> and 'UserToken :> IdentityUserToken<'Key>)>
type IdentityUserContext<'User, 'Key, 'UserClaim, 'UserLogin, 'UserToken (requires 'User :> IdentityUser<'Key> and 'Key :> IEquatable<'Key> and 'UserClaim :> IdentityUserClaim<'Key> and 'UserLogin :> IdentityUserLogin<'Key> and 'UserToken :> IdentityUserToken<'Key>)> = class
inherit DbContext
Public Class IdentityUserContext(Of TUser, TKey, TUserClaim, TUserLogin, TUserToken)
Inherits IdentityUserContext(Of TUser, TKey, TUserClaim, TUserLogin, TUserToken, IdentityUserPasskey(Of TKey))
Public MustInherit Class IdentityUserContext(Of TUser, TKey, TUserClaim, TUserLogin, TUserToken)
Inherits DbContext
Type Parameters
- TUser
The type of user objects.
- TKey
The type of the primary key for users and roles.
- TUserClaim
The type of the user claim object.
- TUserLogin
The type of the user login object.
- TUserToken
The type of the user token object.
- Inheritance
-
IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken,IdentityUserPasskey<TKey>>IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken>
- Inheritance
-
IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken>
- Derived
Constructors
IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken>() |
Initializes a new instance of the class. |
IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken>(DbContextOptions) |
Initializes a new instance of the db context. |
Properties
Methods
OnModelCreating(ModelBuilder) |
Configures the schema needed for the identity framework. |
OnModelCreating(ModelBuilder) |
Configures the schema needed for the identity framework. (Inherited from IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken,TUserPasskey>) |