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

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

返回

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

适用于