UserOnlyStore<TUser,TContext,TKey,TUserClaim,TUserLogin,TUserToken> Classe
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Representa uma nova instância de um repositório de persistência para os tipos de usuário e função especificados.
generic <typename TUser, typename TContext, typename TKey, typename TUserClaim, typename TUserLogin, typename TUserToken>
where TUser : IdentityUser<TKey> where TContext : DbContext where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey>gcnew() where TUserLogin : IdentityUserLogin<TKey>gcnew() where TUserToken : IdentityUserToken<TKey>gcnew()public ref class UserOnlyStore : Microsoft::AspNetCore::Identity::UserStoreBase<TUser, TKey, TUserClaim, TUserLogin, TUserToken>, IDisposable, Microsoft::AspNetCore::Identity::IQueryableUserStore<TUser>, Microsoft::AspNetCore::Identity::IUserAuthenticationTokenStore<TUser>, Microsoft::AspNetCore::Identity::IUserAuthenticatorKeyStore<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::IUserSecurityStampStore<TUser>, Microsoft::AspNetCore::Identity::IUserStore<TUser>, Microsoft::AspNetCore::Identity::IUserTwoFactorRecoveryCodeStore<TUser>, Microsoft::AspNetCore::Identity::IUserTwoFactorStore<TUser>
generic <typename TUser, typename TContext, typename TKey, typename TUserClaim, typename TUserLogin, typename TUserToken>
where TUser : IdentityUser<TKey> where TContext : DbContext where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey>gcnew() where TUserLogin : IdentityUserLogin<TKey>gcnew() where TUserToken : IdentityUserToken<TKey>gcnew()public ref class UserOnlyStore : Microsoft::AspNetCore::Identity::UserStoreBase<TUser, TKey, TUserClaim, TUserLogin, TUserToken>, IDisposable, Microsoft::AspNetCore::Identity::IProtectedUserStore<TUser>, Microsoft::AspNetCore::Identity::IQueryableUserStore<TUser>, Microsoft::AspNetCore::Identity::IUserAuthenticationTokenStore<TUser>, Microsoft::AspNetCore::Identity::IUserAuthenticatorKeyStore<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::IUserSecurityStampStore<TUser>, Microsoft::AspNetCore::Identity::IUserStore<TUser>, Microsoft::AspNetCore::Identity::IUserTwoFactorRecoveryCodeStore<TUser>, Microsoft::AspNetCore::Identity::IUserTwoFactorStore<TUser>
public class UserOnlyStore<TUser,TContext,TKey,TUserClaim,TUserLogin,TUserToken> : Microsoft.AspNetCore.Identity.UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>, IDisposable, Microsoft.AspNetCore.Identity.IQueryableUserStore<TUser>, Microsoft.AspNetCore.Identity.IUserAuthenticationTokenStore<TUser>, Microsoft.AspNetCore.Identity.IUserAuthenticatorKeyStore<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.IUserSecurityStampStore<TUser>, Microsoft.AspNetCore.Identity.IUserStore<TUser>, Microsoft.AspNetCore.Identity.IUserTwoFactorRecoveryCodeStore<TUser>, Microsoft.AspNetCore.Identity.IUserTwoFactorStore<TUser> where TUser : IdentityUser<TKey> where TContext : DbContext where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey>, new() where TUserLogin : IdentityUserLogin<TKey>, new() where TUserToken : IdentityUserToken<TKey>, new()
public class UserOnlyStore<TUser,TContext,TKey,TUserClaim,TUserLogin,TUserToken> : Microsoft.AspNetCore.Identity.UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>, IDisposable, Microsoft.AspNetCore.Identity.IProtectedUserStore<TUser>, Microsoft.AspNetCore.Identity.IQueryableUserStore<TUser>, Microsoft.AspNetCore.Identity.IUserAuthenticationTokenStore<TUser>, Microsoft.AspNetCore.Identity.IUserAuthenticatorKeyStore<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.IUserSecurityStampStore<TUser>, Microsoft.AspNetCore.Identity.IUserStore<TUser>, Microsoft.AspNetCore.Identity.IUserTwoFactorRecoveryCodeStore<TUser>, Microsoft.AspNetCore.Identity.IUserTwoFactorStore<TUser> where TUser : IdentityUser<TKey> where TContext : DbContext where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey>, new() where TUserLogin : IdentityUserLogin<TKey>, new() where TUserToken : IdentityUserToken<TKey>, new()
type UserOnlyStore<'User, 'Context, 'Key, 'UserClaim, 'UserLogin, 'UserToken (requires 'User :> IdentityUser<'Key> and 'Context :> DbContext and 'Key :> IEquatable<'Key> and 'UserClaim :> IdentityUserClaim<'Key> and 'UserClaim : (new : unit -> 'UserClaim) and 'UserLogin :> IdentityUserLogin<'Key> and 'UserLogin : (new : unit -> 'UserLogin) and 'UserToken :> IdentityUserToken<'Key> and 'UserToken : (new : unit -> 'UserToken))> = class
inherit UserStoreBase<'User, 'Key, 'UserClaim, 'UserLogin, 'UserToken (requires 'User :> IdentityUser<'Key> and 'Key :> IEquatable<'Key> and 'UserClaim :> IdentityUserClaim<'Key> and 'UserClaim : (new : unit -> 'UserClaim) and 'UserLogin :> IdentityUserLogin<'Key> and 'UserLogin : (new : unit -> 'UserLogin) and 'UserToken :> IdentityUserToken<'Key> and 'UserToken : (new : unit -> 'UserToken))>
interface IUserLoginStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IDisposable
interface IUserClaimStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserPasswordStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserSecurityStampStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserEmailStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserLockoutStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserPhoneNumberStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IQueryableUserStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserTwoFactorStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserAuthenticationTokenStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserAuthenticatorKeyStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserTwoFactorRecoveryCodeStore<'User (requires 'User :> IdentityUser<'Key>)>
type UserOnlyStore<'User, 'Context, 'Key, 'UserClaim, 'UserLogin, 'UserToken (requires 'User :> IdentityUser<'Key> and 'Context :> DbContext and 'Key :> IEquatable<'Key> and 'UserClaim :> IdentityUserClaim<'Key> and 'UserClaim : (new : unit -> 'UserClaim) and 'UserLogin :> IdentityUserLogin<'Key> and 'UserLogin : (new : unit -> 'UserLogin) and 'UserToken :> IdentityUserToken<'Key> and 'UserToken : (new : unit -> 'UserToken))> = class
inherit UserStoreBase<'User, 'Key, 'UserClaim, 'UserLogin, 'UserToken (requires 'User :> IdentityUser<'Key> and 'Key :> IEquatable<'Key> and 'UserClaim :> IdentityUserClaim<'Key> and 'UserClaim : (new : unit -> 'UserClaim) and 'UserLogin :> IdentityUserLogin<'Key> and 'UserLogin : (new : unit -> 'UserLogin) and 'UserToken :> IdentityUserToken<'Key> and 'UserToken : (new : unit -> 'UserToken))>
interface IUserLoginStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IDisposable
interface IUserClaimStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserPasswordStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserSecurityStampStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserEmailStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserLockoutStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserPhoneNumberStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IQueryableUserStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserTwoFactorStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserAuthenticationTokenStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserAuthenticatorKeyStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IUserTwoFactorRecoveryCodeStore<'User (requires 'User :> IdentityUser<'Key>)>
interface IProtectedUserStore<'User (requires 'User :> IdentityUser<'Key>)>
Public Class UserOnlyStore(Of TUser, TContext, TKey, TUserClaim, TUserLogin, TUserToken)
Inherits UserStoreBase(Of TUser, TKey, TUserClaim, TUserLogin, TUserToken)
Implements IDisposable, IQueryableUserStore(Of TUser), IUserAuthenticationTokenStore(Of TUser), IUserAuthenticatorKeyStore(Of TUser), IUserClaimStore(Of TUser), IUserEmailStore(Of TUser), IUserLockoutStore(Of TUser), IUserLoginStore(Of TUser), IUserPasswordStore(Of TUser), IUserPhoneNumberStore(Of TUser), IUserSecurityStampStore(Of TUser), IUserStore(Of TUser), IUserTwoFactorRecoveryCodeStore(Of TUser), IUserTwoFactorStore(Of TUser)
Public Class UserOnlyStore(Of TUser, TContext, TKey, TUserClaim, TUserLogin, TUserToken)
Inherits UserStoreBase(Of TUser, TKey, TUserClaim, TUserLogin, TUserToken)
Implements IDisposable, IProtectedUserStore(Of TUser), IQueryableUserStore(Of TUser), IUserAuthenticationTokenStore(Of TUser), IUserAuthenticatorKeyStore(Of TUser), IUserClaimStore(Of TUser), IUserEmailStore(Of TUser), IUserLockoutStore(Of TUser), IUserLoginStore(Of TUser), IUserPasswordStore(Of TUser), IUserPhoneNumberStore(Of TUser), IUserSecurityStampStore(Of TUser), IUserStore(Of TUser), IUserTwoFactorRecoveryCodeStore(Of TUser), IUserTwoFactorStore(Of TUser)
Parâmetros de tipo
- TUser
O tipo que representa um usuário.
- TContext
O tipo da classe de contexto de dados usada para acessar o repositório.
- TKey
O tipo da chave primária para uma função.
- TUserClaim
O tipo que representa uma declaração.
- TUserLogin
O tipo que representa um logon externo do usuário.
- TUserToken
O tipo que representa um token de usuário.
- Herança
-
UserOnlyStore<TUser,TContext,TKey,TUserClaim,TUserLogin,TUserToken>
- Derivado
- Implementações
-
IQueryableUserStore<TUser> IUserAuthenticationTokenStore<TUser> IUserAuthenticatorKeyStore<TUser> IUserClaimStore<TUser> IUserEmailStore<TUser> IUserLockoutStore<TUser> IUserLoginStore<TUser> IUserPasswordStore<TUser> IUserPhoneNumberStore<TUser> IUserSecurityStampStore<TUser> IUserStore<TUser> IUserTwoFactorRecoveryCodeStore<TUser> IUserTwoFactorStore<TUser> IDisposable IProtectedUserStore<TUser>
Construtores
UserOnlyStore<TUser,TContext,TKey,TUserClaim,TUserLogin,TUserToken>(TContext, IdentityErrorDescriber) |
Cria uma nova instância do repositório. |
Propriedades
AutoSaveChanges |
Obtém ou define um sinalizador que indica se as alterações devem ser mantidas após CreateAsync, UpdateAsync e DeleteAsync serem chamadas. |
Context |
Obtém o contexto do banco de dados para este repositório. |
ErrorDescriber |
Obtém ou define o IdentityErrorDescriber para qualquer erro ocorrido com a operação atual. (Herdado de UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>) |
UserClaims |
DbSet de declarações de usuário. |
UserLogins |
DbSet de logons de usuário. |
Users |
Uma propriedade de navegação para os usuários que o repositório contém. |
UsersSet |
DbSet de usuários. |
UserTokens |
DbSet de tokens de usuário. |