共用方式為


RelationalConventionSetBuilderDependencies.With 方法

定義

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

public Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.RelationalConventionSetBuilderDependencies With (Microsoft.EntityFrameworkCore.Metadata.IRelationalAnnotationProvider relationalAnnotationProvider);
member this.With : Microsoft.EntityFrameworkCore.Metadata.IRelationalAnnotationProvider -> Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.RelationalConventionSetBuilderDependencies
Public Function With (relationalAnnotationProvider As IRelationalAnnotationProvider) As RelationalConventionSetBuilderDependencies

參數

relationalAnnotationProvider
IRelationalAnnotationProvider

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

傳回

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

適用於