QuerySqlGeneratorDependencies.With 方法

定义

重载

With(IRelationalCommandBuilderFactory)

克隆此依赖项参数对象,替换了一个服务。

With(ISqlGenerationHelper)

克隆此依赖项参数对象,替换了一个服务。

With(IRelationalCommandBuilderFactory)

克隆此依赖项参数对象,替换了一个服务。

public Microsoft.EntityFrameworkCore.Query.QuerySqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory relationalCommandBuilderFactory);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory -> Microsoft.EntityFrameworkCore.Query.QuerySqlGeneratorDependencies
Public Function With (relationalCommandBuilderFactory As IRelationalCommandBuilderFactory) As QuerySqlGeneratorDependencies

参数

relationalCommandBuilderFactory
IRelationalCommandBuilderFactory

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

返回

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

适用于

With(ISqlGenerationHelper)

克隆此依赖项参数对象,替换了一个服务。

public Microsoft.EntityFrameworkCore.Query.QuerySqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper);
member this.With : Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper -> Microsoft.EntityFrameworkCore.Query.QuerySqlGeneratorDependencies
Public Function With (sqlGenerationHelper As ISqlGenerationHelper) As QuerySqlGeneratorDependencies

参数

sqlGenerationHelper
ISqlGenerationHelper

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

返回

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

适用于