IdentityDbContext<TUser,TRole,TKey,TUserLogin,TUserRole,TUserClaim,TRoleClaim> Конструкторы
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
IdentityDbContext<TUser,TRole,TKey,TUserLogin,TUserRole,TUserClaim,TRoleClaim>()
public:
IdentityDbContext();
public IdentityDbContext ();
Public Sub New ()
Применяется к
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)
Параметры
- model
- DbCompiledModel
Применяется к
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)
Параметры
- nameOrConnectionString
- String
Применяется к
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)
Параметры
- existingConnection
- DbConnection
- contextOwnsConnection
- Boolean
Применяется к
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)
Параметры
- nameOrConnectionString
- String
- model
- DbCompiledModel
Применяется к
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)
Параметры
- existingConnection
- DbConnection
- model
- DbCompiledModel
- contextOwnsConnection
- Boolean
Применяется к
Обратная связь
https://aka.ms/ContentUserFeedback.
Ожидается в ближайшее время: в течение 2024 года мы постепенно откажемся от GitHub Issues как механизма обратной связи для контента и заменим его новой системой обратной связи. Дополнительные сведения см. в разделеОтправить и просмотреть отзыв по