UserOnlyStore<TUser,TContext,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.
Represents a new instance of a persistence store for the specified user and role types.
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)
Type Parameters
- TUser
The type representing a user.
- TContext
The type of the data context class used to access the store.
- TKey
The type of the primary key for a role.
- TUserClaim
The type representing a claim.
- TUserLogin
The type representing a user external login.
- TUserToken
The type representing a user token.
- Inheritance
-
UserOnlyStore<TUser,TContext,TKey,TUserClaim,TUserLogin,TUserToken>
- Derived
- Implements
-
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>
Constructors
UserOnlyStore<TUser,TContext,TKey,TUserClaim,TUserLogin,TUserToken>(TContext, IdentityErrorDescriber) |
Creates a new instance of the store. |
Properties
AutoSaveChanges |
Gets or sets a flag indicating if changes should be persisted after CreateAsync, UpdateAsync and DeleteAsync are called. |
Context |
Gets the database context for this store. |
ErrorDescriber |
Gets or sets the IdentityErrorDescriber for any error that occurred with the current operation. (Inherited from UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>) |
UserClaims |
DbSet of user claims. |
UserLogins |
DbSet of user logins. |
Users |
A navigation property for the users the store contains. |
UsersSet |
DbSet of users. |
UserTokens |
DbSet of user tokens. |