RelationalDatabaseCreatorDependencies 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RelationalDatabaseCreatorDependencies(IModel, IRelationalConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor, IExecutionStrategyFactory)
为 . RelationalDatabaseCreator. 创建服务依赖项参数对象。
请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用“With...”替换所选服务方法。 在此进程中的任何时刻不要调用构造函数。
此 API 支持Entity Framework Core基础结构,不打算直接从代码使用。 此 API 可能会在将来的版本中更改或删除。
public RelationalDatabaseCreatorDependencies(Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer modelDiffer, Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator migrationsSqlGenerator, Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor migrationCommandExecutor, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory executionStrategyFactory);
new Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer * Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator * Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Sub New (model As IModel, connection As IRelationalConnection, modelDiffer As IMigrationsModelDiffer, migrationsSqlGenerator As IMigrationsSqlGenerator, migrationCommandExecutor As IMigrationCommandExecutor, executionStrategyFactory As IExecutionStrategyFactory)
参数
- connection
- IRelationalConnection
- modelDiffer
- IMigrationsModelDiffer
- migrationsSqlGenerator
- IMigrationsSqlGenerator
- migrationCommandExecutor
- IMigrationCommandExecutor
- executionStrategyFactory
- IExecutionStrategyFactory
适用于
RelationalDatabaseCreatorDependencies(IModel, IRelationalConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor, ISqlGenerationHelper, IExecutionStrategyFactory)
为 . RelationalDatabaseCreator. 创建服务依赖项参数对象。
请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用“With...”替换所选服务方法。 在此进程中的任何时刻不要调用构造函数。
此 API 支持Entity Framework Core基础结构,不打算直接从代码使用。 此 API 可能会在将来的版本中更改或删除。
public RelationalDatabaseCreatorDependencies(Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer modelDiffer, Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator migrationsSqlGenerator, Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor migrationCommandExecutor, Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory executionStrategyFactory);
new Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer * Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator * Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor * Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Sub New (model As IModel, connection As IRelationalConnection, modelDiffer As IMigrationsModelDiffer, migrationsSqlGenerator As IMigrationsSqlGenerator, migrationCommandExecutor As IMigrationCommandExecutor, sqlGenerationHelper As ISqlGenerationHelper, executionStrategyFactory As IExecutionStrategyFactory)
参数
- connection
- IRelationalConnection
- modelDiffer
- IMigrationsModelDiffer
- migrationsSqlGenerator
- IMigrationsSqlGenerator
- migrationCommandExecutor
- IMigrationCommandExecutor
- sqlGenerationHelper
- ISqlGenerationHelper
ISqlGenerationHelper要使用的。
- executionStrategyFactory
- IExecutionStrategyFactory
适用于
RelationalDatabaseCreatorDependencies(IRelationalConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor, ISqlGenerationHelper, IExecutionStrategy, ICurrentDbContext, IRelationalCommandDiagnosticsLogger)
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public RelationalDatabaseCreatorDependencies(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer modelDiffer, Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator migrationsSqlGenerator, Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor migrationCommandExecutor, Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy executionStrategy, Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger commandLogger);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer * Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator * Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor * Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy * Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Sub New (connection As IRelationalConnection, modelDiffer As IMigrationsModelDiffer, migrationsSqlGenerator As IMigrationsSqlGenerator, migrationCommandExecutor As IMigrationCommandExecutor, sqlGenerationHelper As ISqlGenerationHelper, executionStrategy As IExecutionStrategy, currentContext As ICurrentDbContext, commandLogger As IRelationalCommandDiagnosticsLogger)
参数
- connection
- IRelationalConnection
- modelDiffer
- IMigrationsModelDiffer
- migrationsSqlGenerator
- IMigrationsSqlGenerator
- migrationCommandExecutor
- IMigrationCommandExecutor
- sqlGenerationHelper
- ISqlGenerationHelper
- executionStrategy
- IExecutionStrategy
- currentContext
- ICurrentDbContext
- commandLogger
- IRelationalCommandDiagnosticsLogger
- 特性
注解
请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用 C# “with” 运算符替换所选服务。 在此进程中的任何时刻不要调用构造函数。
适用于
RelationalDatabaseCreatorDependencies(IModel, IRelationalConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor, ISqlGenerationHelper, IExecutionStrategyFactory, ICurrentDbContext, IDiagnosticsLogger<DbLoggerCategory.Database.Command>)
为 . RelationalDatabaseCreator. 创建服务依赖项参数对象。
请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用“With...”替换所选服务方法。 在此进程中的任何时刻不要调用构造函数。
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public RelationalDatabaseCreatorDependencies(Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer modelDiffer, Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator migrationsSqlGenerator, Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor migrationCommandExecutor, Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory executionStrategyFactory, Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> commandLogger);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer * Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator * Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor * Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory * Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Sub New (model As IModel, connection As IRelationalConnection, modelDiffer As IMigrationsModelDiffer, migrationsSqlGenerator As IMigrationsSqlGenerator, migrationCommandExecutor As IMigrationCommandExecutor, sqlGenerationHelper As ISqlGenerationHelper, executionStrategyFactory As IExecutionStrategyFactory, currentContext As ICurrentDbContext, commandLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command))
参数
- model
- IModel
- connection
- IRelationalConnection
- modelDiffer
- IMigrationsModelDiffer
- migrationsSqlGenerator
- IMigrationsSqlGenerator
- migrationCommandExecutor
- IMigrationCommandExecutor
- sqlGenerationHelper
- ISqlGenerationHelper
- executionStrategyFactory
- IExecutionStrategyFactory
- currentContext
- ICurrentDbContext
- commandLogger
- IDiagnosticsLogger<DbLoggerCategory.Database.Command>
- 特性
适用于
RelationalDatabaseCreatorDependencies(IRelationalConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor, ISqlGenerationHelper, IExecutionStrategy, ICurrentDbContext, IDbContextOptions, IRelationalCommandDiagnosticsLogger)
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public RelationalDatabaseCreatorDependencies(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer modelDiffer, Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator migrationsSqlGenerator, Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor migrationCommandExecutor, Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy executionStrategy, Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions contextOptions, Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger commandLogger);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer * Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator * Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor * Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy * Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions * Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Sub New (connection As IRelationalConnection, modelDiffer As IMigrationsModelDiffer, migrationsSqlGenerator As IMigrationsSqlGenerator, migrationCommandExecutor As IMigrationCommandExecutor, sqlGenerationHelper As ISqlGenerationHelper, executionStrategy As IExecutionStrategy, currentContext As ICurrentDbContext, contextOptions As IDbContextOptions, commandLogger As IRelationalCommandDiagnosticsLogger)
参数
- connection
- IRelationalConnection
- modelDiffer
- IMigrationsModelDiffer
- migrationsSqlGenerator
- IMigrationsSqlGenerator
- migrationCommandExecutor
- IMigrationCommandExecutor
- sqlGenerationHelper
- ISqlGenerationHelper
- executionStrategy
- IExecutionStrategy
- currentContext
- ICurrentDbContext
- contextOptions
- IDbContextOptions
- commandLogger
- IRelationalCommandDiagnosticsLogger
- 特性
注解
请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用 C# “with” 运算符替换所选服务。 在此进程中的任何时刻不要调用构造函数。
适用于
RelationalDatabaseCreatorDependencies(IModel, IRelationalConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor, ISqlGenerationHelper, IExecutionStrategy, IExecutionStrategyFactory, ICurrentDbContext, IRelationalCommandDiagnosticsLogger)
为 . RelationalDatabaseCreator. 创建服务依赖项参数对象。
请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用“With...”替换所选服务方法。 在此进程中的任何时刻不要调用构造函数。
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public RelationalDatabaseCreatorDependencies(Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer modelDiffer, Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator migrationsSqlGenerator, Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor migrationCommandExecutor, Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy executionStrategy, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory executionStrategyFactory, Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger commandLogger);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer * Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator * Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor * Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory * Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Sub New (model As IModel, connection As IRelationalConnection, modelDiffer As IMigrationsModelDiffer, migrationsSqlGenerator As IMigrationsSqlGenerator, migrationCommandExecutor As IMigrationCommandExecutor, sqlGenerationHelper As ISqlGenerationHelper, executionStrategy As IExecutionStrategy, executionStrategyFactory As IExecutionStrategyFactory, currentContext As ICurrentDbContext, commandLogger As IRelationalCommandDiagnosticsLogger)
参数
- model
- IModel
- connection
- IRelationalConnection
- modelDiffer
- IMigrationsModelDiffer
- migrationsSqlGenerator
- IMigrationsSqlGenerator
- migrationCommandExecutor
- IMigrationCommandExecutor
- sqlGenerationHelper
- ISqlGenerationHelper
- executionStrategy
- IExecutionStrategy
- executionStrategyFactory
- IExecutionStrategyFactory
- currentContext
- ICurrentDbContext
- commandLogger
- IRelationalCommandDiagnosticsLogger
- 特性
适用于
RelationalDatabaseCreatorDependencies(IRelationalConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor, ISqlGenerationHelper, IExecutionStrategy, ICurrentDbContext, IDbContextOptions, IRelationalCommandDiagnosticsLogger, IExceptionDetector)
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public RelationalDatabaseCreatorDependencies(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer modelDiffer, Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator migrationsSqlGenerator, Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor migrationCommandExecutor, Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy executionStrategy, Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions contextOptions, Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger commandLogger, Microsoft.EntityFrameworkCore.Storage.IExceptionDetector exceptionDetector);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer * Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator * Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor * Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy * Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions * Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger * Microsoft.EntityFrameworkCore.Storage.IExceptionDetector -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Sub New (connection As IRelationalConnection, modelDiffer As IMigrationsModelDiffer, migrationsSqlGenerator As IMigrationsSqlGenerator, migrationCommandExecutor As IMigrationCommandExecutor, sqlGenerationHelper As ISqlGenerationHelper, executionStrategy As IExecutionStrategy, currentContext As ICurrentDbContext, contextOptions As IDbContextOptions, commandLogger As IRelationalCommandDiagnosticsLogger, exceptionDetector As IExceptionDetector)
参数
- connection
- IRelationalConnection
- modelDiffer
- IMigrationsModelDiffer
- migrationsSqlGenerator
- IMigrationsSqlGenerator
- migrationCommandExecutor
- IMigrationCommandExecutor
- sqlGenerationHelper
- ISqlGenerationHelper
- executionStrategy
- IExecutionStrategy
- currentContext
- ICurrentDbContext
- contextOptions
- IDbContextOptions
- commandLogger
- IRelationalCommandDiagnosticsLogger
- exceptionDetector
- IExceptionDetector
- 特性
注解
请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用 C# “with” 运算符替换所选服务。 在此进程中的任何时刻不要调用构造函数。
适用于
RelationalDatabaseCreatorDependencies(IRelationalConnection, IMigrationsModelDiffer, IMigrationsSqlGenerator, IMigrationCommandExecutor, ISqlGenerationHelper, IExecutionStrategy, ICurrentDbContext, IDbContextOptions, IRelationalCommandDiagnosticsLogger, IExceptionDetector, IDiagnosticsLogger<DbLoggerCategory.Infrastructure>)
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public RelationalDatabaseCreatorDependencies(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer modelDiffer, Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator migrationsSqlGenerator, Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor migrationCommandExecutor, Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy executionStrategy, Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions contextOptions, Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger commandLogger, Microsoft.EntityFrameworkCore.Storage.IExceptionDetector exceptionDetector, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> logger);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer * Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator * Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor * Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy * Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions * Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger * Microsoft.EntityFrameworkCore.Storage.IExceptionDetector * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Infrastructure> -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreatorDependencies
Public Sub New (connection As IRelationalConnection, modelDiffer As IMigrationsModelDiffer, migrationsSqlGenerator As IMigrationsSqlGenerator, migrationCommandExecutor As IMigrationCommandExecutor, sqlGenerationHelper As ISqlGenerationHelper, executionStrategy As IExecutionStrategy, currentContext As ICurrentDbContext, contextOptions As IDbContextOptions, commandLogger As IRelationalCommandDiagnosticsLogger, exceptionDetector As IExceptionDetector, logger As IDiagnosticsLogger(Of DbLoggerCategory.Infrastructure))
参数
- connection
- IRelationalConnection
- modelDiffer
- IMigrationsModelDiffer
- migrationsSqlGenerator
- IMigrationsSqlGenerator
- migrationCommandExecutor
- IMigrationCommandExecutor
- sqlGenerationHelper
- ISqlGenerationHelper
- executionStrategy
- IExecutionStrategy
- currentContext
- ICurrentDbContext
- contextOptions
- IDbContextOptions
- commandLogger
- IRelationalCommandDiagnosticsLogger
- exceptionDetector
- IExceptionDetector
- 特性
注解
请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用 C# “with” 运算符替换所选服务。 在此进程中的任何时刻不要调用构造函数。