IdentityDbContext Class
Represents a class that uses the default entity types for ASP.NET Identity Users, Roles, Claims, Logins. Use this overload to add your own entity types.
Assembly: Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)
System.Data.Entity.DbContext
Microsoft.AspNet.Identity.EntityFramework.IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>
Microsoft.AspNet.Identity.EntityFramework.IdentityDbContext
| Name | Description | |
|---|---|---|
![]() | IdentityDbContext() | Initializes a new instance of the IdentityDbContext class. |
![]() | IdentityDbContext(DbConnection, DbCompiledModel, Boolean) | Initializes a new instance of the IdentityDbContext class using the existing connection to connect to a database, and initializes it from the given model. The connection will not be disposed when the context is disposed if contextOwnsConnection is false. |
![]() | IdentityDbContext(String) | Initializes a new instance of the IdentityDbContext class which takes the connection string to use. |
| Name | Description | |
|---|---|---|
![]() | ChangeTracker | (Inherited from DbContext.) |
![]() | Configuration | (Inherited from DbContext.) |
![]() | Database | (Inherited from DbContext.) |
![]() | RequireUniqueEmail | Gets or sets whether to require unique e-mail in validating user identity.(Inherited from IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.) |
![]() | Roles | Gets or sets the collection of roles.(Inherited from IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.) |
![]() | Users | Gets or sets the collection of users.(Inherited from IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


