UpdateSqlGeneratorDependencies 构造函数

定义

重载

UpdateSqlGeneratorDependencies(ISqlGenerationHelper)

UpdateSqlGenerator创建服务依赖项参数对象。

请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会随着新依赖项的添加而更改。 相反,请在构造函数中使用此类型,以便由依赖项注入容器自动创建和注入实例。 若要创建替换了某些依赖服务的实例,请首先解析依赖项注入容器中的 对象,然后使用“With...”替换所选服务方法。 请勿在此过程的任何时间点调用构造函数。

此 API 支持 Entity Framework Core 基础结构,不应直接从代码使用。 将来的版本中可能会更改或删除此 API。

UpdateSqlGeneratorDependencies(ISqlGenerationHelper, IRelationalTypeMappingSource)

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,而无需通知。 仅应在代码中非常谨慎地直接使用它,并且知道在更新到新的 Entity Framework Core 版本时这样做可能会导致应用程序失败。

UpdateSqlGeneratorDependencies(ISqlGenerationHelper)

UpdateSqlGenerator创建服务依赖项参数对象。

请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会随着新依赖项的添加而更改。 相反,请在构造函数中使用此类型,以便由依赖项注入容器自动创建和注入实例。 若要创建替换了某些依赖服务的实例,请首先解析依赖项注入容器中的 对象,然后使用“With...”替换所选服务方法。 请勿在此过程的任何时间点调用构造函数。

此 API 支持 Entity Framework Core 基础结构,不应直接从代码使用。 将来的版本中可能会更改或删除此 API。

public UpdateSqlGeneratorDependencies (Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper);
new Microsoft.EntityFrameworkCore.Update.UpdateSqlGeneratorDependencies : Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper -> Microsoft.EntityFrameworkCore.Update.UpdateSqlGeneratorDependencies
Public Sub New (sqlGenerationHelper As ISqlGenerationHelper)

参数

sqlGenerationHelper
ISqlGenerationHelper

生成更新 SQL 的帮助程序。

适用于

UpdateSqlGeneratorDependencies(ISqlGenerationHelper, IRelationalTypeMappingSource)

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,而无需通知。 仅应在代码中非常谨慎地直接使用它,并且知道在更新到新的 Entity Framework Core 版本时这样做可能会导致应用程序失败。

public UpdateSqlGeneratorDependencies (Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public UpdateSqlGeneratorDependencies (Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource);
new Microsoft.EntityFrameworkCore.Update.UpdateSqlGeneratorDependencies : Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource -> Microsoft.EntityFrameworkCore.Update.UpdateSqlGeneratorDependencies
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Update.UpdateSqlGeneratorDependencies : Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource -> Microsoft.EntityFrameworkCore.Update.UpdateSqlGeneratorDependencies
Public Sub New (sqlGenerationHelper As ISqlGenerationHelper, typeMappingSource As IRelationalTypeMappingSource)

参数

sqlGenerationHelper
ISqlGenerationHelper

生成更新 SQL 的帮助程序。

typeMappingSource
IRelationalTypeMappingSource

类型映射源。

属性

注解

请勿直接从提供程序或应用程序代码调用此构造函数,因为它可能会随着新依赖项的添加而更改。 相反,请在构造函数中使用此类型,以便由依赖项注入容器自动创建和注入实例。 若要创建替换了某些依赖服务的实例,请先解析依赖项注入容器中的 对象,然后使用 C# “with” 运算符替换所选服务。 请勿在此过程的任何时间点调用构造函数。

适用于