RelationalModelValidatorDependencies.With 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
With(IRelationalTypeMapper) |
已过时.
克隆此依赖项参数对象,替换了一个服务。 |
With(IRelationalTypeMappingSource) |
克隆此依赖项参数对象,替换了一个服务。 |
With(IRelationalTypeMapper)
注意
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)
克隆此依赖项参数对象,替换了一个服务。
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
此类型的当前依赖项的替代项。
返回
替换了给定服务的新参数对象。