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
取代此類型的目前相依性。
傳回
取代指定服務的新參數物件。