IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class

 

Represents a generic IdentityDbContext base that can be customized with entity types that extend from the base IdentityUserXXX types.

Namespace:   Microsoft.AspNet.Identity.EntityFramework
Assembly:  Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)

System.Object
  System.Data.Entity.DbContext
    Microsoft.AspNet.Identity.EntityFramework.IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>
      Microsoft.AspNet.Identity.EntityFramework.IdentityDbContext
      Microsoft.AspNet.Identity.EntityFramework.IdentityDbContext<TUser>

public class IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> : DbContext
where TUser : IdentityUser<TKey, TUserLogin, TUserRole, TUserClaim>
where TRole : IdentityRole<TKey, TUserRole>
where TUserLogin : IdentityUserLogin<TKey>
where TUserRole : IdentityUserRole<TKey>
where TUserClaim : IdentityUserClaim<TKey>

Type Parameters

TUser

The type of the user in the identity.

TRole

The type of the role in the identity.

TKey

The type of the key in the identity.

TUserLogin

The type of the user login in the identity.

TUserRole

The type of the user role in the identity.

TUserClaim

The type of the user claim in the identity.

NameDescription
System_CAPS_pubmethodIdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>()

Initializes a new instance of the IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> class.

System_CAPS_pubmethodIdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>(DbConnection, DbCompiledModel, Boolean)

Initializes a new instance of the IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> class.

System_CAPS_pubmethodIdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>(String)

Initializes a new instance of the IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> class using the specified connection string.

NameDescription
System_CAPS_pubpropertyChangeTracker

(Inherited from DbContext.)

System_CAPS_pubpropertyConfiguration

(Inherited from DbContext.)

System_CAPS_pubpropertyDatabase

(Inherited from DbContext.)

System_CAPS_pubpropertyRequireUniqueEmail

Gets or sets whether to require unique e-mail in validating user identity.

System_CAPS_pubpropertyRoles

Gets or sets the collection of roles.

System_CAPS_pubpropertyUsers

Gets or sets the collection of users.

NameDescription
System_CAPS_pubmethodDispose()

(Inherited from DbContext.)

System_CAPS_protmethodDispose(Boolean)

(Inherited from DbContext.)

System_CAPS_pubmethodEntry(Object)

(Inherited from DbContext.)

System_CAPS_pubmethodEntry<TEntity>(TEntity)

(Inherited from DbContext.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetValidationErrors()

(Inherited from DbContext.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodOnModelCreating(DbModelBuilder)

Maps table names, and sets up relationships between the various user entities.(Overrides DbContext.OnModelCreating(DbModelBuilder).)

System_CAPS_pubmethodSaveChanges()

(Inherited from DbContext.)

System_CAPS_pubmethodSaveChangesAsync()

(Inherited from DbContext.)

System_CAPS_pubmethodSaveChangesAsync(CancellationToken)

(Inherited from DbContext.)

System_CAPS_pubmethodSet(Type)

(Inherited from DbContext.)

System_CAPS_pubmethodSet<TEntity>()

(Inherited from DbContext.)

System_CAPS_protmethodShouldValidateEntity(DbEntityEntry)

(Inherited from DbContext.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_protmethodValidateEntity(DbEntityEntry, IDictionary<Object, Object>)

Validates that UserNames are unique and case sensitive.(Overrides DbContext.ValidateEntity(DbEntityEntry, IDictionary<Object, Object>).)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: