IdentityDbContext<TUser> Class
IdentityDbContext of IdentityUsers
Inheritance Hierarchy
System.Object
System.Data.Entity.DbContext
Microsoft.AspNet.Identity.EntityFramework.IdentityDbContext<TUser>
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(Of TUser As IdentityUser) _
Inherits DbContext
'Usage
Dim instance As IdentityDbContext(Of TUser)
public class IdentityDbContext<TUser> : DbContext
where TUser : IdentityUser
generic<typename TUser>
where TUser : IdentityUser
public ref class IdentityDbContext : public DbContext
type IdentityDbContext<'TUser when 'TUser : IdentityUser> =
class
inherit DbContext
end
JScript does not support generic types and methods.
Type Parameters
- TUser
The IdentityDbContext<TUser> type exposes the following members.
Constructors
Name | Description | |
---|---|---|
IdentityDbContext<TUser>() | Default constructor which uses the "DefaultConnection" connectionString | |
IdentityDbContext<TUser>(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 | ||
Users |
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 | (Overrides DbContext.OnModelCreating(DbModelBuilder).) | |
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 | (Overrides DbContext.ValidateEntity(DbEntityEntry, IDictionary<Object, Object>).) |
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.