UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken> Třída
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Představuje novou instanci úložiště trvalosti pro zadané typy uživatele a role.
generic <typename TUser, typename TRole, typename TContext, typename TKey, typename TUserClaim, typename TUserRole, typename TUserLogin, typename TUserToken>
where TUser : IdentityUser<TKey, TUserClaim, TUserRole, TUserLogin> where TRole : IdentityRole<TKey, TUserRole, IdentityRoleClaim<TKey> ^> where TContext : DbContext where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey> where TUserRole : IdentityUserRole<TKey> where TUserLogin : IdentityUserLogin<TKey> where TUserToken : IdentityUserToken<TKey>public ref class UserStore abstract : IDisposable, Microsoft::AspNetCore::Identity::IQueryableUserStore<TUser>, Microsoft::AspNetCore::Identity::IUserAuthenticationTokenStore<TUser>, Microsoft::AspNetCore::Identity::IUserClaimStore<TUser>, Microsoft::AspNetCore::Identity::IUserEmailStore<TUser>, Microsoft::AspNetCore::Identity::IUserLockoutStore<TUser>, Microsoft::AspNetCore::Identity::IUserLoginStore<TUser>, Microsoft::AspNetCore::Identity::IUserPasswordStore<TUser>, Microsoft::AspNetCore::Identity::IUserPhoneNumberStore<TUser>, Microsoft::AspNetCore::Identity::IUserRoleStore<TUser>, Microsoft::AspNetCore::Identity::IUserSecurityStampStore<TUser>, Microsoft::AspNetCore::Identity::IUserStore<TUser>, Microsoft::AspNetCore::Identity::IUserTwoFactorStore<TUser>
generic <typename TUser, typename TRole, typename TContext, typename TKey, typename TUserClaim, typename TUserRole, typename TUserLogin, typename TUserToken>
where TUser : IdentityUser<TKey, TUserClaim, TUserRole, TUserLogin> where TRole : IdentityRole<TKey, TUserRole, IdentityRoleClaim<TKey> ^> where TContext : DbContext where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey> where TUserRole : IdentityUserRole<TKey> where TUserLogin : IdentityUserLogin<TKey> where TUserToken : IdentityUserToken<TKey>public ref class UserStore abstract : Microsoft::AspNetCore::Identity::EntityFrameworkCore::UserStore<TUser, TRole, TContext, TKey, TUserClaim, TUserRole, TUserLogin, TUserToken, Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityRoleClaim<TKey> ^>
public abstract class UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken> : IDisposable, Microsoft.AspNetCore.Identity.IQueryableUserStore<TUser>, Microsoft.AspNetCore.Identity.IUserAuthenticationTokenStore<TUser>, Microsoft.AspNetCore.Identity.IUserClaimStore<TUser>, Microsoft.AspNetCore.Identity.IUserEmailStore<TUser>, Microsoft.AspNetCore.Identity.IUserLockoutStore<TUser>, Microsoft.AspNetCore.Identity.IUserLoginStore<TUser>, Microsoft.AspNetCore.Identity.IUserPasswordStore<TUser>, Microsoft.AspNetCore.Identity.IUserPhoneNumberStore<TUser>, Microsoft.AspNetCore.Identity.IUserRoleStore<TUser>, Microsoft.AspNetCore.Identity.IUserSecurityStampStore<TUser>, Microsoft.AspNetCore.Identity.IUserStore<TUser>, Microsoft.AspNetCore.Identity.IUserTwoFactorStore<TUser> where TUser : IdentityUser<TKey,TUserClaim,TUserRole,TUserLogin> where TRole : IdentityRole<TKey,TUserRole,IdentityRoleClaim<TKey>> where TContext : DbContext where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey> where TUserRole : IdentityUserRole<TKey> where TUserLogin : IdentityUserLogin<TKey> where TUserToken : IdentityUserToken<TKey>
public abstract class UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<TKey>> where TUser : IdentityUser<TKey,TUserClaim,TUserRole,TUserLogin> where TRole : IdentityRole<TKey,TUserRole,IdentityRoleClaim<TKey>> where TContext : DbContext where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey> where TUserRole : IdentityUserRole<TKey> where TUserLogin : IdentityUserLogin<TKey> where TUserToken : IdentityUserToken<TKey>
type UserStore<'User, 'Role, 'Context, 'Key, 'UserClaim, 'UserRole, 'UserLogin, 'UserToken (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin> and 'Role :> IdentityRole<'Key, 'UserRole, IdentityRoleClaim<'Key>> and 'Context :> DbContext and 'Key :> IEquatable<'Key> and 'UserClaim :> IdentityUserClaim<'Key> and 'UserRole :> IdentityUserRole<'Key> and 'UserLogin :> IdentityUserLogin<'Key> and 'UserToken :> IdentityUserToken<'Key>)> = class
interface IUserLoginStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IDisposable
interface IUserRoleStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserClaimStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserPasswordStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserSecurityStampStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserEmailStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserLockoutStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserPhoneNumberStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IQueryableUserStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserTwoFactorStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
interface IUserAuthenticationTokenStore<'User (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin>)>
type UserStore<'User, 'Role, 'Context, 'Key, 'UserClaim, 'UserRole, 'UserLogin, 'UserToken (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin> and 'Role :> IdentityRole<'Key, 'UserRole, IdentityRoleClaim<'Key>> and 'Context :> DbContext and 'Key :> IEquatable<'Key> and 'UserClaim :> IdentityUserClaim<'Key> and 'UserRole :> IdentityUserRole<'Key> and 'UserLogin :> IdentityUserLogin<'Key> and 'UserToken :> IdentityUserToken<'Key>)> = class
inherit UserStore<'User, 'Role, 'Context, 'Key, 'UserClaim, 'UserRole, 'UserLogin, 'UserToken, IdentityRoleClaim<'Key> (requires 'User :> IdentityUser<'Key, 'UserClaim, 'UserRole, 'UserLogin> and 'Role :> IdentityRole<'Key, 'UserRole, IdentityRoleClaim<'Key>> and 'Context :> DbContext and 'Key :> IEquatable<'Key> and 'UserClaim :> IdentityUserClaim<'Key> and 'UserRole :> IdentityUserRole<'Key> and 'UserLogin :> IdentityUserLogin<'Key> and 'UserToken :> IdentityUserToken<'Key>)>
Public MustInherit Class UserStore(Of TUser, TRole, TContext, TKey, TUserClaim, TUserRole, TUserLogin, TUserToken)
Implements IDisposable, IQueryableUserStore(Of TUser), IUserAuthenticationTokenStore(Of TUser), IUserClaimStore(Of TUser), IUserEmailStore(Of TUser), IUserLockoutStore(Of TUser), IUserLoginStore(Of TUser), IUserPasswordStore(Of TUser), IUserPhoneNumberStore(Of TUser), IUserRoleStore(Of TUser), IUserSecurityStampStore(Of TUser), IUserStore(Of TUser), IUserTwoFactorStore(Of TUser)
Public MustInherit Class UserStore(Of TUser, TRole, TContext, TKey, TUserClaim, TUserRole, TUserLogin, TUserToken)
Inherits UserStore(Of TUser, TRole, TContext, TKey, TUserClaim, TUserRole, TUserLogin, TUserToken, IdentityRoleClaim(Of TKey))
Parametry typu
- TUser
Typ představující uživatele.
- TRole
Typ představující roli.
- TContext
Typ třídy kontextu dat, která se používá pro přístup k úložišti.
- TKey
Typ primárního klíče pro roli.
- TUserClaim
Typ představující deklaraci identity.
- TUserRole
Typ představující roli uživatele.
- TUserLogin
Typ představující externí přihlášení uživatele.
- TUserToken
Typ představující token uživatele.
- Dědičnost
-
UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken>
- Dědičnost
-
UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,IdentityRoleClaim<TKey>>UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken>
- Implementuje
-
IQueryableUserStore<TUser> IUserAuthenticationTokenStore<TUser> IUserClaimStore<TUser> IUserEmailStore<TUser> IUserLockoutStore<TUser> IUserLoginStore<TUser> IUserPasswordStore<TUser> IUserPhoneNumberStore<TUser> IUserRoleStore<TUser> IUserSecurityStampStore<TUser> IUserStore<TUser> IUserTwoFactorStore<TUser> IDisposable
Konstruktory
UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken>(TContext, IdentityErrorDescriber) |
Vytvoří novou instanci položky UserStore. |
Vlastnosti
AutoSaveChanges |
Získá nebo nastaví příznak označující, zda mají být změny zachovány po CreateAsync, UpdateAsync a DeleteAsync jsou volána. |
AutoSaveChanges |
Získá nebo nastaví příznak označující, zda mají být změny zachovány po CreateAsync, UpdateAsync a DeleteAsync jsou volána. (Zděděno od UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>) |
Context |
Získá kontext databáze pro toto úložiště. |
Context |
Získá kontext databáze pro toto úložiště. (Zděděno od UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>) |
ErrorDescriber |
Získá nebo nastaví IdentityErrorDescriber pro všechny chyby, ke kterým došlo v aktuální operaci. |
ErrorDescriber |
Získá nebo nastaví IdentityErrorDescriber pro všechny chyby, ke kterým došlo v aktuální operaci. (Zděděno od UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>) |
Users |
Navigační vlastnost pro uživatele, které store obsahuje. |
Users |
Navigační vlastnost pro uživatele, které store obsahuje. (Zděděno od UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>) |
Metody
Platí pro
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro