IdentityDbContext<TUser,TRole,TKey,TUserLogin,TUserRole,TUserClaim,TRoleClaim> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
IdentityDbContext<TUser,TRole,TKey,TUserLogin,TUserRole,TUserClaim,TRoleClaim>()
public:
IdentityDbContext();
public IdentityDbContext ();
Public Sub New ()
Applies to
IdentityDbContext<TUser,TRole,TKey,TUserLogin,TUserRole,TUserClaim,TRoleClaim>(DbCompiledModel)
public:
IdentityDbContext(System::Data::Entity::Infrastructure::DbCompiledModel ^ model);
public IdentityDbContext (System.Data.Entity.Infrastructure.DbCompiledModel model);
new Microsoft.AspNet.Identity.CoreCompat.IdentityDbContext<'User, 'Role, 'Key, 'UserLogin, 'UserRole, 'UserClaim, 'RoleClaim (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser<'Key, 'UserLogin, 'UserRole, 'UserClaim> and 'Role :> Microsoft.AspNet.Identity.CoreCompat.IdentityRole<'Key, 'UserRole> and 'UserLogin :> Microsoft.AspNet.Identity.CoreCompat.IdentityUserLogin<'Key> and 'UserRole :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole<'Key> and 'UserClaim :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim<'Key> and 'RoleClaim :> Microsoft.AspNet.Identity.CoreCompat.IdentityRoleClaim<'Key>)> : System.Data.Entity.Infrastructure.DbCompiledModel -> Microsoft.AspNet.Identity.CoreCompat.IdentityDbContext<'User, 'Role, 'Key, 'UserLogin, 'UserRole, 'UserClaim, 'RoleClaim (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser<'Key, 'UserLogin, 'UserRole, 'UserClaim> and 'Role :> Microsoft.AspNet.Identity.CoreCompat.IdentityRole<'Key, 'UserRole> and 'UserLogin :> Microsoft.AspNet.Identity.CoreCompat.IdentityUserLogin<'Key> and 'UserRole :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole<'Key> and 'UserClaim :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim<'Key> and 'RoleClaim :> Microsoft.AspNet.Identity.CoreCompat.IdentityRoleClaim<'Key>)>
Public Sub New (model As DbCompiledModel)
Parameters
- model
- DbCompiledModel
Applies to
IdentityDbContext<TUser,TRole,TKey,TUserLogin,TUserRole,TUserClaim,TRoleClaim>(String)
public:
IdentityDbContext(System::String ^ nameOrConnectionString);
public IdentityDbContext (string nameOrConnectionString);
new Microsoft.AspNet.Identity.CoreCompat.IdentityDbContext<'User, 'Role, 'Key, 'UserLogin, 'UserRole, 'UserClaim, 'RoleClaim (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser<'Key, 'UserLogin, 'UserRole, 'UserClaim> and 'Role :> Microsoft.AspNet.Identity.CoreCompat.IdentityRole<'Key, 'UserRole> and 'UserLogin :> Microsoft.AspNet.Identity.CoreCompat.IdentityUserLogin<'Key> and 'UserRole :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole<'Key> and 'UserClaim :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim<'Key> and 'RoleClaim :> Microsoft.AspNet.Identity.CoreCompat.IdentityRoleClaim<'Key>)> : string -> Microsoft.AspNet.Identity.CoreCompat.IdentityDbContext<'User, 'Role, 'Key, 'UserLogin, 'UserRole, 'UserClaim, 'RoleClaim (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser<'Key, 'UserLogin, 'UserRole, 'UserClaim> and 'Role :> Microsoft.AspNet.Identity.CoreCompat.IdentityRole<'Key, 'UserRole> and 'UserLogin :> Microsoft.AspNet.Identity.CoreCompat.IdentityUserLogin<'Key> and 'UserRole :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole<'Key> and 'UserClaim :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim<'Key> and 'RoleClaim :> Microsoft.AspNet.Identity.CoreCompat.IdentityRoleClaim<'Key>)>
Public Sub New (nameOrConnectionString As String)
Parameters
- nameOrConnectionString
- String
Applies to
IdentityDbContext<TUser,TRole,TKey,TUserLogin,TUserRole,TUserClaim,TRoleClaim>(DbConnection, Boolean)
public:
IdentityDbContext(System::Data::Common::DbConnection ^ existingConnection, bool contextOwnsConnection);
public IdentityDbContext (System.Data.Common.DbConnection existingConnection, bool contextOwnsConnection);
new Microsoft.AspNet.Identity.CoreCompat.IdentityDbContext<'User, 'Role, 'Key, 'UserLogin, 'UserRole, 'UserClaim, 'RoleClaim (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser<'Key, 'UserLogin, 'UserRole, 'UserClaim> and 'Role :> Microsoft.AspNet.Identity.CoreCompat.IdentityRole<'Key, 'UserRole> and 'UserLogin :> Microsoft.AspNet.Identity.CoreCompat.IdentityUserLogin<'Key> and 'UserRole :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole<'Key> and 'UserClaim :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim<'Key> and 'RoleClaim :> Microsoft.AspNet.Identity.CoreCompat.IdentityRoleClaim<'Key>)> : System.Data.Common.DbConnection * bool -> Microsoft.AspNet.Identity.CoreCompat.IdentityDbContext<'User, 'Role, 'Key, 'UserLogin, 'UserRole, 'UserClaim, 'RoleClaim (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser<'Key, 'UserLogin, 'UserRole, 'UserClaim> and 'Role :> Microsoft.AspNet.Identity.CoreCompat.IdentityRole<'Key, 'UserRole> and 'UserLogin :> Microsoft.AspNet.Identity.CoreCompat.IdentityUserLogin<'Key> and 'UserRole :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole<'Key> and 'UserClaim :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim<'Key> and 'RoleClaim :> Microsoft.AspNet.Identity.CoreCompat.IdentityRoleClaim<'Key>)>
Public Sub New (existingConnection As DbConnection, contextOwnsConnection As Boolean)
Parameters
- existingConnection
- DbConnection
- contextOwnsConnection
- Boolean
Applies to
IdentityDbContext<TUser,TRole,TKey,TUserLogin,TUserRole,TUserClaim,TRoleClaim>(String, DbCompiledModel)
public:
IdentityDbContext(System::String ^ nameOrConnectionString, System::Data::Entity::Infrastructure::DbCompiledModel ^ model);
public IdentityDbContext (string nameOrConnectionString, System.Data.Entity.Infrastructure.DbCompiledModel model);
new Microsoft.AspNet.Identity.CoreCompat.IdentityDbContext<'User, 'Role, 'Key, 'UserLogin, 'UserRole, 'UserClaim, 'RoleClaim (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser<'Key, 'UserLogin, 'UserRole, 'UserClaim> and 'Role :> Microsoft.AspNet.Identity.CoreCompat.IdentityRole<'Key, 'UserRole> and 'UserLogin :> Microsoft.AspNet.Identity.CoreCompat.IdentityUserLogin<'Key> and 'UserRole :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole<'Key> and 'UserClaim :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim<'Key> and 'RoleClaim :> Microsoft.AspNet.Identity.CoreCompat.IdentityRoleClaim<'Key>)> : string * System.Data.Entity.Infrastructure.DbCompiledModel -> Microsoft.AspNet.Identity.CoreCompat.IdentityDbContext<'User, 'Role, 'Key, 'UserLogin, 'UserRole, 'UserClaim, 'RoleClaim (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser<'Key, 'UserLogin, 'UserRole, 'UserClaim> and 'Role :> Microsoft.AspNet.Identity.CoreCompat.IdentityRole<'Key, 'UserRole> and 'UserLogin :> Microsoft.AspNet.Identity.CoreCompat.IdentityUserLogin<'Key> and 'UserRole :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole<'Key> and 'UserClaim :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim<'Key> and 'RoleClaim :> Microsoft.AspNet.Identity.CoreCompat.IdentityRoleClaim<'Key>)>
Public Sub New (nameOrConnectionString As String, model As DbCompiledModel)
Parameters
- nameOrConnectionString
- String
- model
- DbCompiledModel
Applies to
IdentityDbContext<TUser,TRole,TKey,TUserLogin,TUserRole,TUserClaim,TRoleClaim>(DbConnection, DbCompiledModel, Boolean)
public:
IdentityDbContext(System::Data::Common::DbConnection ^ existingConnection, System::Data::Entity::Infrastructure::DbCompiledModel ^ model, bool contextOwnsConnection);
public IdentityDbContext (System.Data.Common.DbConnection existingConnection, System.Data.Entity.Infrastructure.DbCompiledModel model, bool contextOwnsConnection);
new Microsoft.AspNet.Identity.CoreCompat.IdentityDbContext<'User, 'Role, 'Key, 'UserLogin, 'UserRole, 'UserClaim, 'RoleClaim (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser<'Key, 'UserLogin, 'UserRole, 'UserClaim> and 'Role :> Microsoft.AspNet.Identity.CoreCompat.IdentityRole<'Key, 'UserRole> and 'UserLogin :> Microsoft.AspNet.Identity.CoreCompat.IdentityUserLogin<'Key> and 'UserRole :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole<'Key> and 'UserClaim :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim<'Key> and 'RoleClaim :> Microsoft.AspNet.Identity.CoreCompat.IdentityRoleClaim<'Key>)> : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.DbCompiledModel * bool -> Microsoft.AspNet.Identity.CoreCompat.IdentityDbContext<'User, 'Role, 'Key, 'UserLogin, 'UserRole, 'UserClaim, 'RoleClaim (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser<'Key, 'UserLogin, 'UserRole, 'UserClaim> and 'Role :> Microsoft.AspNet.Identity.CoreCompat.IdentityRole<'Key, 'UserRole> and 'UserLogin :> Microsoft.AspNet.Identity.CoreCompat.IdentityUserLogin<'Key> and 'UserRole :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole<'Key> and 'UserClaim :> Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim<'Key> and 'RoleClaim :> Microsoft.AspNet.Identity.CoreCompat.IdentityRoleClaim<'Key>)>
Public Sub New (existingConnection As DbConnection, model As DbCompiledModel, contextOwnsConnection As Boolean)
Parameters
- existingConnection
- DbConnection
- model
- DbCompiledModel
- contextOwnsConnection
- Boolean