语言

RelationalModelValidatorDependencies.With 方法

定义

重载

名称 说明
With(IRelationalTypeMapper)
已过时.

用替换了一个服务克隆此依赖项参数对象。

With(IRelationalTypeMappingSource)

用替换了一个服务克隆此依赖项参数对象。

With(IRelationalTypeMapper)

Source:
RelationalModelValidatorDependencies.cs
Source:
RelationalModelValidatorDependencies.cs

注意

Use IRelationalTypeMappingSource.

用替换了一个服务克隆此依赖项参数对象。

public Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidatorDependencies With(Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper);
[System.Obsolete("Use IRelationalTypeMappingSource.")]
public Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidatorDependencies With(Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidatorDependencies
[<System.Obsolete("Use IRelationalTypeMappingSource.")>]
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidatorDependencies
Public Function With (typeMapper As IRelationalTypeMapper) As RelationalModelValidatorDependencies

参数

typeMapper
IRelationalTypeMapper

替换此类型的当前依赖项。

返回

替换为给定服务的新参数对象。

特性

适用于

With(IRelationalTypeMappingSource)

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

用替换了一个服务克隆此依赖项参数对象。

public Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidatorDependencies With(Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidatorDependencies
Public Function With (typeMappingSource As IRelationalTypeMappingSource) As RelationalModelValidatorDependencies

参数

typeMappingSource
IRelationalTypeMappingSource

替换此类型的当前依赖项。

返回

替换为给定服务的新参数对象。

适用于