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
Public method IdentityDbContext<TUser>() Default constructor which uses the "DefaultConnection" connectionString
Public method IdentityDbContext<TUser>(String) Constructor which takes the connection string to use

Top

Properties

  Name Description
Public property ChangeTracker (Inherited from DbContext.)
Public property Configuration (Inherited from DbContext.)
Public property Database (Inherited from DbContext.)
Public property Roles
Public property Users

Top

Methods

  Name Description
Public method Dispose() (Inherited from DbContext.)
Protected method Dispose(Boolean) (Inherited from DbContext.)
Public method Entry(Object) (Inherited from DbContext.)
Public method Entry<TEntity>(TEntity) (Inherited from DbContext.)
Public method Equals (Inherited from DbContext.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from DbContext.)
Public method GetType (Inherited from DbContext.)
Public method GetValidationErrors (Inherited from DbContext.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnModelCreating (Overrides DbContext.OnModelCreating(DbModelBuilder).)
Public method SaveChanges (Inherited from DbContext.)
Public method SaveChangesAsync() (Inherited from DbContext.)
Public method SaveChangesAsync(CancellationToken) (Inherited from DbContext.)
Public method Set(Type) (Inherited from DbContext.)
Public method Set<TEntity>() (Inherited from DbContext.)
Protected method ShouldValidateEntity (Inherited from DbContext.)
Public method ToString (Inherited from DbContext.)
Protected method ValidateEntity (Overrides DbContext.ValidateEntity(DbEntityEntry, IDictionary<Object, Object>).)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate property 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.

See Also

Reference

Microsoft.AspNet.Identity.EntityFramework Namespace