共用方式為


RelationalModelValidatorDependencies.With 方法

定義

多載

With(IRelationalTypeMapper)
已淘汰.

複製此相依性參數物件,並取代一個服務。

With(IRelationalTypeMappingSource)

複製此相依性參數物件,並取代一個服務。

With(IRelationalTypeMapper)

來源:
RelationalModelValidatorDependencies.cs
來源:
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)

來源:
RelationalModelValidatorDependencies.cs
來源:
RelationalModelValidatorDependencies.cs
來源:
RelationalModelValidatorDependencies.cs
來源:
RelationalModelValidatorDependencies.cs
來源:
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

取代此類型的目前相依性。

傳回

取代指定服務的新參數物件。

適用於