IdentityDbContext Class
Default db context that uses the default entity types
Inheritance Hierarchy
System.Object
System.Data.Entity.DbContext
Microsoft.AspNet.Identity.EntityFramework.IdentityDbContext<IdentityUser>
Microsoft.AspNet.Identity.EntityFramework.IdentityDbContext
Namespace: Microsoft.AspNet.Identity.EntityFramework
Assembly: Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)
Syntax
'Declaration
Public Class IdentityDbContext _
Inherits IdentityDbContext(Of IdentityUser)
'Usage
Dim instance As IdentityDbContext
public class IdentityDbContext : IdentityDbContext<IdentityUser>
public ref class IdentityDbContext : public IdentityDbContext<IdentityUser^>
type IdentityDbContext =
class
inherit IdentityDbContext<IdentityUser>
end
public class IdentityDbContext extends IdentityDbContext<IdentityUser>
The IdentityDbContext type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
IdentityDbContext() | Default constructor which uses the DefaultConnection |
![]() |
IdentityDbContext(String) | Constructor which takes the connection string to use |
Top
Properties
Name | Description | |
---|---|---|
![]() |
ChangeTracker | (Inherited from DbContext.) |
![]() |
Configuration | (Inherited from DbContext.) |
![]() |
Database | (Inherited from DbContext.) |
![]() |
Roles | (Inherited from IdentityDbContext<TUser>.) |
![]() |
Users | (Inherited from IdentityDbContext<TUser>.) |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Dispose() | (Inherited from DbContext.) |
![]() |
Dispose(Boolean) | (Inherited from DbContext.) |
![]() |
Entry(Object) | (Inherited from DbContext.) |
![]() |
Entry<TEntity>(TEntity) | (Inherited from DbContext.) |
![]() |
Equals | (Inherited from DbContext.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetHashCode | (Inherited from DbContext.) |
![]() |
GetType | (Inherited from DbContext.) |
![]() |
GetValidationErrors | (Inherited from DbContext.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
OnModelCreating | (Inherited from IdentityDbContext<TUser>.) |
![]() |
SaveChanges | (Inherited from DbContext.) |
![]() |
SaveChangesAsync() | (Inherited from DbContext.) |
![]() |
SaveChangesAsync(CancellationToken) | (Inherited from DbContext.) |
![]() |
Set(Type) | (Inherited from DbContext.) |
![]() |
Set<TEntity>() | (Inherited from DbContext.) |
![]() |
ShouldValidateEntity | (Inherited from DbContext.) |
![]() |
ToString | (Inherited from DbContext.) |
![]() |
ValidateEntity | (Inherited from IdentityDbContext<TUser>.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() |
IObjectContextAdapter.ObjectContext | (Inherited from DbContext.) |
Top
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.