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.

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


public class IdentityDbContext : IdentityDbContext<IdentityUser, IdentityRole, string, IdentityUserLogin, IdentityUserRole, IdentityUserClaim>

NameDescription
System_CAPS_pubmethodIdentityDbContext()

Initializes a new instance of the IdentityDbContext class.

System_CAPS_pubmethodIdentityDbContext(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.

System_CAPS_pubmethodIdentityDbContext(String)

Initializes a new instance of the IdentityDbContext class which takes the connection string to use.

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.(Inherited from IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.)

System_CAPS_pubpropertyRoles

Gets or sets the collection of roles.(Inherited from IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.)

System_CAPS_pubpropertyUsers

Gets or sets the collection of users.(Inherited from IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.)

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.(Inherited from IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.)

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.(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.

Return to top
Show: