Share via


IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken> Class

Definition

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 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 DbContext
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>
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 class.

Properties

SchemaVersion

Gets the schema version used for versioning.

UserClaims

Gets or sets the DbSet<TEntity> of User claims.

UserLogins

Gets or sets the DbSet<TEntity> of User logins.

Users

Gets or sets the DbSet<TEntity> of Users.

UserTokens

Gets or sets the DbSet<TEntity> of User tokens.

Methods

OnModelCreating(ModelBuilder)

Configures the schema needed for the identity framework.

Applies to