Share via


QuerySqlGeneratorDependencies.With Method

Definition

Overloads

With(IDiagnosticsLogger<DbLoggerCategory.Query>)

Clones this dependency parameter object with one service replaced.

With(IParameterNameGeneratorFactory)

Clones this dependency parameter object with one service replaced.

With(IRelationalCommandBuilderFactory)

Clones this dependency parameter object with one service replaced.

With(IRelationalTypeMapper)
Obsolete.

Clones this dependency parameter object with one service replaced.

With(IRelationalTypeMappingSource)

Clones this dependency parameter object with one service replaced.

With(ISqlGenerationHelper)

Clones this dependency parameter object with one service replaced.

With(IDiagnosticsLogger<DbLoggerCategory.Query>)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.Sql.QuerySqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> logger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> -> Microsoft.EntityFrameworkCore.Query.Sql.QuerySqlGeneratorDependencies
Public Function With (logger As IDiagnosticsLogger(Of DbLoggerCategory.Query)) As QuerySqlGeneratorDependencies

Parameters

logger
IDiagnosticsLogger<DbLoggerCategory.Query>

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IParameterNameGeneratorFactory)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.Sql.QuerySqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IParameterNameGeneratorFactory parameterNameGeneratorFactory);
member this.With : Microsoft.EntityFrameworkCore.Storage.IParameterNameGeneratorFactory -> Microsoft.EntityFrameworkCore.Query.Sql.QuerySqlGeneratorDependencies
Public Function With (parameterNameGeneratorFactory As IParameterNameGeneratorFactory) As QuerySqlGeneratorDependencies

Parameters

parameterNameGeneratorFactory
IParameterNameGeneratorFactory

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IRelationalCommandBuilderFactory)

Clones this dependency parameter object with one service replaced.

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

Parameters

commandBuilderFactory
IRelationalCommandBuilderFactory

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IRelationalTypeMapper)

Caution

Use IRelationalTypeMappingSource.

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.Sql.QuerySqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper relationalTypeMapper);
[System.Obsolete("Use IRelationalTypeMappingSource.")]
public Microsoft.EntityFrameworkCore.Query.Sql.QuerySqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper relationalTypeMapper);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper -> Microsoft.EntityFrameworkCore.Query.Sql.QuerySqlGeneratorDependencies
[<System.Obsolete("Use IRelationalTypeMappingSource.")>]
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper -> Microsoft.EntityFrameworkCore.Query.Sql.QuerySqlGeneratorDependencies
Public Function With (relationalTypeMapper As IRelationalTypeMapper) As QuerySqlGeneratorDependencies

Parameters

relationalTypeMapper
IRelationalTypeMapper

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Attributes

Applies to

With(IRelationalTypeMappingSource)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.Sql.QuerySqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource -> Microsoft.EntityFrameworkCore.Query.Sql.QuerySqlGeneratorDependencies
Public Function With (typeMappingSource As IRelationalTypeMappingSource) As QuerySqlGeneratorDependencies

Parameters

typeMappingSource
IRelationalTypeMappingSource

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(ISqlGenerationHelper)

Clones this dependency parameter object with one service replaced.

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

Parameters

sqlGenerationHelper
ISqlGenerationHelper

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to