MigrationsSqlGeneratorDependencies 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| MigrationsSqlGeneratorDependencies(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IRelationalTypeMapper) |
为 . MigrationsSqlGenerator. 创建服务依赖项参数对象。 请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用“With...”替换所选服务方法。 在此进程中的任何时刻不要调用构造函数。 此 API 支持Entity Framework Core基础结构,不打算直接从代码使用。 此 API 可能会在将来的版本中更改或删除。 |
| MigrationsSqlGeneratorDependencies(IRelationalCommandBuilderFactory, ISingletonUpdateSqlGenerator, ISqlGenerationHelper, IRelationalTypeMapper, IRelationalTypeMappingSource) |
为 . MigrationsSqlGenerator. 创建服务依赖项参数对象。 请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用“With...”替换所选服务方法。 在此进程中的任何时刻不要调用构造函数。 此 API 支持Entity Framework Core基础结构,不打算直接从代码使用。 此 API 可能会在将来的版本中更改或删除。 |
| MigrationsSqlGeneratorDependencies(IRelationalCommandBuilderFactory, IUpdateSqlGenerator, ISqlGenerationHelper, IRelationalTypeMappingSource, ICurrentDbContext, IDiagnosticsLogger<DbLoggerCategory.Database.Command>) |
为 . MigrationsSqlGenerator. 创建服务依赖项参数对象。 请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用“With...”替换所选服务方法。 在此进程中的任何时刻不要调用构造函数。 这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。 |
| MigrationsSqlGeneratorDependencies(IRelationalCommandBuilderFactory, IUpdateSqlGenerator, ISqlGenerationHelper, IRelationalTypeMappingSource, ICurrentDbContext, ILoggingOptions, IDiagnosticsLogger<DbLoggerCategory.Database.Command>, IDiagnosticsLogger<DbLoggerCategory.Migrations>) |
为 . MigrationsSqlGenerator. 创建服务依赖项参数对象。 请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用“With...”替换所选服务方法。 在此进程中的任何时刻不要调用构造函数。 这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。 |
| MigrationsSqlGeneratorDependencies(IRelationalCommandBuilderFactory, IUpdateSqlGenerator, ISqlGenerationHelper, IRelationalTypeMappingSource, ICurrentDbContext, IModificationCommandFactory, ILoggingOptions, IRelationalCommandDiagnosticsLogger, IDiagnosticsLogger<DbLoggerCategory.Migrations>) |
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。 |
MigrationsSqlGeneratorDependencies(IRelationalCommandBuilderFactory, ISqlGenerationHelper, IRelationalTypeMapper)
为 . MigrationsSqlGenerator. 创建服务依赖项参数对象。
请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用“With...”替换所选服务方法。 在此进程中的任何时刻不要调用构造函数。
此 API 支持Entity Framework Core基础结构,不打算直接从代码使用。 此 API 可能会在将来的版本中更改或删除。
public MigrationsSqlGeneratorDependencies(Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory commandBuilderFactory, Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper);
new Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory * Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Sub New (commandBuilderFactory As IRelationalCommandBuilderFactory, sqlGenerationHelper As ISqlGenerationHelper, typeMapper As IRelationalTypeMapper)
参数
- commandBuilderFactory
- IRelationalCommandBuilderFactory
命令生成器工厂。
- sqlGenerationHelper
- ISqlGenerationHelper
SQL 生成的帮助程序。
- typeMapper
- IRelationalTypeMapper
正在使用的类型映射器。
适用于
MigrationsSqlGeneratorDependencies(IRelationalCommandBuilderFactory, ISingletonUpdateSqlGenerator, ISqlGenerationHelper, IRelationalTypeMapper, IRelationalTypeMappingSource)
为 . MigrationsSqlGenerator. 创建服务依赖项参数对象。
请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用“With...”替换所选服务方法。 在此进程中的任何时刻不要调用构造函数。
此 API 支持Entity Framework Core基础结构,不打算直接从代码使用。 此 API 可能会在将来的版本中更改或删除。
public MigrationsSqlGeneratorDependencies(Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory commandBuilderFactory, Microsoft.EntityFrameworkCore.Update.Internal.ISingletonUpdateSqlGenerator updateSqlGenerator, Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource);
new Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory * Microsoft.EntityFrameworkCore.Update.Internal.ISingletonUpdateSqlGenerator * Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Sub New (commandBuilderFactory As IRelationalCommandBuilderFactory, updateSqlGenerator As ISingletonUpdateSqlGenerator, sqlGenerationHelper As ISqlGenerationHelper, typeMapper As IRelationalTypeMapper, typeMappingSource As IRelationalTypeMappingSource)
参数
- commandBuilderFactory
- IRelationalCommandBuilderFactory
命令生成器工厂。
- updateSqlGenerator
- Microsoft.EntityFrameworkCore.Update.Internal.ISingletonUpdateSqlGenerator
高级 SQL 生成器。
- sqlGenerationHelper
- ISqlGenerationHelper
SQL 生成的帮助程序。
- typeMapper
- IRelationalTypeMapper
正在使用的类型映射器。
- typeMappingSource
- IRelationalTypeMappingSource
类型映射器。
适用于
MigrationsSqlGeneratorDependencies(IRelationalCommandBuilderFactory, IUpdateSqlGenerator, ISqlGenerationHelper, IRelationalTypeMappingSource, ICurrentDbContext, IDiagnosticsLogger<DbLoggerCategory.Database.Command>)
为 . MigrationsSqlGenerator. 创建服务依赖项参数对象。
请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用“With...”替换所选服务方法。 在此进程中的任何时刻不要调用构造函数。
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public MigrationsSqlGeneratorDependencies(Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory commandBuilderFactory, Microsoft.EntityFrameworkCore.Update.IUpdateSqlGenerator updateSqlGenerator, Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> logger);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory * Microsoft.EntityFrameworkCore.Update.IUpdateSqlGenerator * Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Sub New (commandBuilderFactory As IRelationalCommandBuilderFactory, updateSqlGenerator As IUpdateSqlGenerator, sqlGenerationHelper As ISqlGenerationHelper, typeMappingSource As IRelationalTypeMappingSource, currentContext As ICurrentDbContext, logger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command))
参数
- commandBuilderFactory
- IRelationalCommandBuilderFactory
- updateSqlGenerator
- IUpdateSqlGenerator
- sqlGenerationHelper
- ISqlGenerationHelper
- typeMappingSource
- IRelationalTypeMappingSource
- currentContext
- ICurrentDbContext
- 特性
适用于
MigrationsSqlGeneratorDependencies(IRelationalCommandBuilderFactory, IUpdateSqlGenerator, ISqlGenerationHelper, IRelationalTypeMappingSource, ICurrentDbContext, ILoggingOptions, IDiagnosticsLogger<DbLoggerCategory.Database.Command>, IDiagnosticsLogger<DbLoggerCategory.Migrations>)
为 . MigrationsSqlGenerator. 创建服务依赖项参数对象。
请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用“With...”替换所选服务方法。 在此进程中的任何时刻不要调用构造函数。
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public MigrationsSqlGeneratorDependencies(Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory commandBuilderFactory, Microsoft.EntityFrameworkCore.Update.IUpdateSqlGenerator updateSqlGenerator, Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions loggingOptions, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> logger, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> migrationsLogger);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory * Microsoft.EntityFrameworkCore.Update.IUpdateSqlGenerator * Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Sub New (commandBuilderFactory As IRelationalCommandBuilderFactory, updateSqlGenerator As IUpdateSqlGenerator, sqlGenerationHelper As ISqlGenerationHelper, typeMappingSource As IRelationalTypeMappingSource, currentContext As ICurrentDbContext, loggingOptions As ILoggingOptions, logger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command), migrationsLogger As IDiagnosticsLogger(Of DbLoggerCategory.Migrations))
参数
- commandBuilderFactory
- IRelationalCommandBuilderFactory
- updateSqlGenerator
- IUpdateSqlGenerator
- sqlGenerationHelper
- ISqlGenerationHelper
- typeMappingSource
- IRelationalTypeMappingSource
- currentContext
- ICurrentDbContext
- loggingOptions
- ILoggingOptions
- migrationsLogger
- IDiagnosticsLogger<DbLoggerCategory.Migrations>
- 特性
适用于
MigrationsSqlGeneratorDependencies(IRelationalCommandBuilderFactory, IUpdateSqlGenerator, ISqlGenerationHelper, IRelationalTypeMappingSource, ICurrentDbContext, IModificationCommandFactory, ILoggingOptions, IRelationalCommandDiagnosticsLogger, IDiagnosticsLogger<DbLoggerCategory.Migrations>)
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public MigrationsSqlGeneratorDependencies(Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory commandBuilderFactory, Microsoft.EntityFrameworkCore.Update.IUpdateSqlGenerator updateSqlGenerator, Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource, Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Update.IModificationCommandFactory modificationCommandFactory, Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions loggingOptions, Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger logger, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> migrationsLogger);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory * Microsoft.EntityFrameworkCore.Update.IUpdateSqlGenerator * Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource * Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Update.IModificationCommandFactory * Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions * Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Sub New (commandBuilderFactory As IRelationalCommandBuilderFactory, updateSqlGenerator As IUpdateSqlGenerator, sqlGenerationHelper As ISqlGenerationHelper, typeMappingSource As IRelationalTypeMappingSource, currentContext As ICurrentDbContext, modificationCommandFactory As IModificationCommandFactory, loggingOptions As ILoggingOptions, logger As IRelationalCommandDiagnosticsLogger, migrationsLogger As IDiagnosticsLogger(Of DbLoggerCategory.Migrations))
参数
- commandBuilderFactory
- IRelationalCommandBuilderFactory
- updateSqlGenerator
- IUpdateSqlGenerator
- sqlGenerationHelper
- ISqlGenerationHelper
- typeMappingSource
- IRelationalTypeMappingSource
- currentContext
- ICurrentDbContext
- modificationCommandFactory
- IModificationCommandFactory
- loggingOptions
- ILoggingOptions
- migrationsLogger
- IDiagnosticsLogger<DbLoggerCategory.Migrations>
- 特性
注解
请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会在添加新依赖项时更改。 请改用构造函数中的此类型,以便依赖项注入容器自动创建和注入实例。 若要创建已替换某些依赖服务的实例,请先从依赖项注入容器解析对象,然后使用 C# “with” 运算符替换所选服务。 在此进程中的任何时刻不要调用构造函数。