IdentityUserContext<TUser,TKey> 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>
where TUser : IdentityUser<TKey> where TKey : IEquatable<TKey>public ref class IdentityUserContext : Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityUserContext<TUser, TKey, Microsoft::AspNetCore::Identity::IdentityUserClaim<TKey> ^, Microsoft::AspNetCore::Identity::IdentityUserLogin<TKey> ^, Microsoft::AspNetCore::Identity::IdentityUserToken<TKey> ^>
public class IdentityUserContext<TUser,TKey> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext<TUser,TKey,Microsoft.AspNetCore.Identity.IdentityUserClaim<TKey>,Microsoft.AspNetCore.Identity.IdentityUserLogin<TKey>,Microsoft.AspNetCore.Identity.IdentityUserToken<TKey>> where TUser : IdentityUser<TKey> where TKey : IEquatable<TKey>
type IdentityUserContext<'User, 'Key (requires 'User :> IdentityUser<'Key> and 'Key :> IEquatable<'Key>)> = class
inherit IdentityUserContext<'User, 'Key, IdentityUserClaim<'Key>, IdentityUserLogin<'Key>, IdentityUserToken<'Key> (requires 'User :> IdentityUser<'Key> and 'Key :> IEquatable<'Key>)>
Public Class IdentityUserContext(Of TUser, TKey)
Inherits IdentityUserContext(Of TUser, TKey, IdentityUserClaim(Of TKey), IdentityUserLogin(Of TKey), IdentityUserToken(Of TKey))
Type Parameters
- TUser
The type of user objects.
- TKey
The type of the primary key for users and roles.
- Inheritance
-
IdentityUserContext<TUser,TKey,IdentityUserClaim<TKey>,IdentityUserLogin<TKey>,IdentityUserToken<TKey>>IdentityUserContext<TUser,TKey>
- Derived
Constructors
IdentityUserContext<TUser,TKey>() |
Initializes a new instance of the class. |
IdentityUserContext<TUser,TKey>(DbContextOptions) |
Initializes a new instance of the db context. |
Properties
SchemaVersion |
Gets the schema version used for versioning. (Inherited from IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken>) |
UserClaims |
Gets or sets the DbSet<TEntity> of User claims. (Inherited from IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken>) |
UserLogins |
Gets or sets the DbSet<TEntity> of User logins. (Inherited from IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken>) |
Users |
Gets or sets the DbSet<TEntity> of Users. (Inherited from IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken>) |
UserTokens |
Gets or sets the DbSet<TEntity> of User tokens. (Inherited from IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken>) |
Methods
OnModelCreating(ModelBuilder) |
Configures the schema needed for the identity framework. (Inherited from IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken>) |