IdentityDbContext<TUser> Конструкторы
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
IdentityDbContext<TUser>()
public:
IdentityDbContext();
public IdentityDbContext ();
Public Sub New ()
Применяется к
IdentityDbContext<TUser>(DbCompiledModel)
public:
IdentityDbContext(System::Data::Entity::Infrastructure::DbCompiledModel ^ model);
public IdentityDbContext (System.Data.Entity.Infrastructure.DbCompiledModel model);
new Microsoft.AspNet.Identity.CoreCompat.IdentityDbContext<'User (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser)> : System.Data.Entity.Infrastructure.DbCompiledModel -> Microsoft.AspNet.Identity.CoreCompat.IdentityDbContext<'User (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser)>
Public Sub New (model As DbCompiledModel)
Параметры
- model
- DbCompiledModel
Применяется к
IdentityDbContext<TUser>(String)
public:
IdentityDbContext(System::String ^ nameOrConnectionString);
public IdentityDbContext (string nameOrConnectionString);
new Microsoft.AspNet.Identity.CoreCompat.IdentityDbContext<'User (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser)> : string -> Microsoft.AspNet.Identity.CoreCompat.IdentityDbContext<'User (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser)>
Public Sub New (nameOrConnectionString As String)
Параметры
- nameOrConnectionString
- String
Применяется к
IdentityDbContext<TUser>(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 (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser)> : System.Data.Common.DbConnection * bool -> Microsoft.AspNet.Identity.CoreCompat.IdentityDbContext<'User (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser)>
Public Sub New (existingConnection As DbConnection, contextOwnsConnection As Boolean)
Параметры
- existingConnection
- DbConnection
- contextOwnsConnection
- Boolean
Применяется к
IdentityDbContext<TUser>(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 (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser)> : string * System.Data.Entity.Infrastructure.DbCompiledModel -> Microsoft.AspNet.Identity.CoreCompat.IdentityDbContext<'User (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser)>
Public Sub New (nameOrConnectionString As String, model As DbCompiledModel)
Параметры
- nameOrConnectionString
- String
- model
- DbCompiledModel
Применяется к
IdentityDbContext<TUser>(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 (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser)> : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.DbCompiledModel * bool -> Microsoft.AspNet.Identity.CoreCompat.IdentityDbContext<'User (requires 'User :> Microsoft.AspNet.Identity.CoreCompat.IdentityUser)>
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 как механизма обратной связи для контента и заменим его новой системой обратной связи. Дополнительные сведения см. в разделеОтправить и просмотреть отзыв по