RelationalModelValidatorDependencies 构造函数

定义

重载

RelationalModelValidatorDependencies(IRelationalTypeMapper)

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

此类型通常由数据库提供程序 (和其他扩展) 使用。 它通常不在应用程序代码中使用。

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

RelationalModelValidatorDependencies(IRelationalTypeMappingSource)

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

RelationalModelValidatorDependencies(IRelationalTypeMapper, IRelationalTypeMappingSource)

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

此类型通常由数据库提供程序 (和其他扩展) 使用。 它通常不在应用程序代码中使用。

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

RelationalModelValidatorDependencies(IRelationalTypeMapper)

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

此类型通常由数据库提供程序 (和其他扩展) 使用。 它通常不在应用程序代码中使用。

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

public RelationalModelValidatorDependencies (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper);
new Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidatorDependencies : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidatorDependencies
Public Sub New (typeMapper As IRelationalTypeMapper)

参数

typeMapper
IRelationalTypeMapper

类型映射器。

适用于

RelationalModelValidatorDependencies(IRelationalTypeMappingSource)

Source:
RelationalModelValidatorDependencies.cs
Source:
RelationalModelValidatorDependencies.cs
Source:
RelationalModelValidatorDependencies.cs
Source:
RelationalModelValidatorDependencies.cs
Source:
RelationalModelValidatorDependencies.cs
Source:
RelationalModelValidatorDependencies.cs
Source:
RelationalModelValidatorDependencies.cs

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

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public RelationalModelValidatorDependencies (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidatorDependencies : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidatorDependencies
Public Sub New (typeMappingSource As IRelationalTypeMappingSource)

参数

typeMappingSource
IRelationalTypeMappingSource
属性

注解

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

适用于

RelationalModelValidatorDependencies(IRelationalTypeMapper, IRelationalTypeMappingSource)

Source:
RelationalModelValidatorDependencies.cs
Source:
RelationalModelValidatorDependencies.cs

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

此类型通常由数据库提供程序 (和其他扩展) 使用。 它通常不在应用程序代码中使用。

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

public RelationalModelValidatorDependencies (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource);
new Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidatorDependencies : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidatorDependencies
Public Sub New (typeMapper As IRelationalTypeMapper, typeMappingSource As IRelationalTypeMappingSource)

参数

typeMapper
IRelationalTypeMapper

类型映射器。

typeMappingSource
IRelationalTypeMappingSource

类型映射器。

适用于