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 | |
---|---|---|
IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>() | Initializes a new instance of the IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> class. |
|
IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>(DbConnection, DbCompiledModel, Boolean) | Initializes a new instance of the IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> class. |
|
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
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
existingConnection
Type: System.Data.Common.DbConnectionAn existing connection to use for the new context.
model
Type: System.Data.Entity.Infrastructure.DbCompiledModelThe model that will back this context.
contextOwnsConnection
Type: System.BooleanDetermines whether the context owns the connection. The connection will not be disposed when the context is disposed if contextOwnsConnection is false.
See Also
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.StringThe connection string.
See Also
Return to top