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

 

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

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

Overload List

Name Description
System_CAPS_pubmethod IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>()

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

System_CAPS_pubmethod IdentityDbContext<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_pubmethod IdentityDbContext<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.

See Also

IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class
Microsoft.AspNet.Identity.EntityFramework Namespace
ASP.NET Identity

Return to top

IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Constructor ()

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

Syntax

public IdentityDbContext()
public:
IdentityDbContext()
new : unit -> IdentityDbContext
Public Sub New

See Also

ASP.NET Identity

Return to top

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

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

Syntax

public IdentityDbContext(
    DbConnection existingConnection,
    DbCompiledModel model,
    bool contextOwnsConnection
)
public:
IdentityDbContext(
    DbConnection^ existingConnection,
    DbCompiledModel^ model,
    bool contextOwnsConnection
)
new : 
        existingConnection:DbConnection *
        model:DbCompiledModel *
        contextOwnsConnection:bool -> IdentityDbContext
Public Sub New (
    existingConnection As DbConnection,
    model As DbCompiledModel,
    contextOwnsConnection As Boolean
)

Parameters

  • contextOwnsConnection
    Type: System.Boolean

    Determines whether the context owns the connection. The connection will not be disposed when the context is disposed if contextOwnsConnection is false.

See Also

ASP.NET Identity

Return to top

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

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

Syntax

public IdentityDbContext(
    string nameOrConnectionString
)
public:
IdentityDbContext(
    String^ nameOrConnectionString
)
new : 
        nameOrConnectionString:string -> IdentityDbContext
Public Sub New (
    nameOrConnectionString As String
)

Parameters

  • nameOrConnectionString
    Type: System.String

    The connection string.

See Also

ASP.NET Identity

Return to top