UserStore<TUser> Class
Represents an Entity Framework implementation of a store that supports IUserStore, IUserLoginStore, IUserClaimStore and IUserRoleStore.
Namespace: Microsoft.AspNet.Identity.EntityFramework
Assembly: Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)
Inheritance Hierarchy
System.Object
Microsoft.AspNet.Identity.EntityFramework.UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>
Microsoft.AspNet.Identity.EntityFramework.UserStore<TUser>
Syntax
public class UserStore<TUser> : UserStore<TUser, IdentityRole, string, IdentityUserLogin, IdentityUserRole, IdentityUserClaim>,
IUserStore<TUser>, IUserStore<TUser, string>, IDisposable
where TUser : IdentityUser
generic<typename TUser>
where TUser : IdentityUser
public ref class UserStore : UserStore<TUser, IdentityRole^, String^, IdentityUserLogin^, IdentityUserRole^, IdentityUserClaim^>,
IUserStore<TUser>, IUserStore<TUser, String^>, IDisposable
type UserStore<'TUser when 'TUser : IdentityUser> =
class
inherit UserStore<'TUser, IdentityRole, string, IdentityUserLogin, IdentityUserRole, IdentityUserClaim>
interface IUserStore<'TUser>
interface IUserStore<'TUser, string>
interface IDisposable
end
Public Class UserStore(Of TUser As IdentityUser)
Inherits UserStore(Of TUser, IdentityRole, String, IdentityUserLogin, IdentityUserRole, IdentityUserClaim)
Implements IUserStore(Of TUser), IUserStore(Of TUser, String), IDisposable
Type Parameters
- TUser
The type of the user.
Constructors
Name | Description | |
---|---|---|
UserStore<TUser>() | Initializes a new instance of the UserStore<TUser> class which uses a new instance of a default EntityyDbContext. |
|
UserStore<TUser>(DbContext) | Initializes a new instance of the UserStore<TUser> class. |
Properties
Name | Description | |
---|---|---|
AutoSaveChanges | Gets or sets a value that indicates whether to call SaveChanges after Create/Update/Delete.(Inherited from UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.) |
|
Context | Gets the context for the store.(Inherited from UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.) |
|
DisposeContext | Gets or sets whether to dispose the DbContext during Dispose.(Inherited from UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.) |
|
Users | Gets an IQueryable<T> of users.(Inherited from UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.) |
Methods
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.AspNet.Identity.EntityFramework Namespace
ASP.NET Identity
Return to top