QueryCompilationContextDependencies.With Method

Definition

Overloads

With(IDiagnosticsLogger<DbLoggerCategory.Query>)

Clones this dependency parameter object with one service replaced.

With(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

With(IDbContextOptions)

Clones this dependency parameter object with one service replaced.

With(IModel)

Clones this dependency parameter object with one service replaced.

With(IQueryableMethodTranslatingExpressionVisitorFactory)

Clones this dependency parameter object with one service replaced.

With(IQueryTranslationPostprocessorFactory)

Clones this dependency parameter object with one service replaced.

With(IQueryTranslationPreprocessorFactory)

Clones this dependency parameter object with one service replaced.

With(IShapedQueryCompilingExpressionVisitorFactory)

Clones this dependency parameter object with one service replaced.

With(IExecutionStrategyFactory)

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.QueryCompilationContextDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> logger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> -> Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies
Public Function With (logger As IDiagnosticsLogger(Of DbLoggerCategory.Query)) As QueryCompilationContextDependencies

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(ICurrentDbContext)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies
Public Function With (currentContext As ICurrentDbContext) As QueryCompilationContextDependencies

Parameters

currentContext
ICurrentDbContext

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IDbContextOptions)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions contextOptions);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions -> Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies
Public Function With (contextOptions As IDbContextOptions) As QueryCompilationContextDependencies

Parameters

contextOptions
IDbContextOptions

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IModel)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies With (Microsoft.EntityFrameworkCore.Metadata.IModel model);
member this.With : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies
Public Function With (model As IModel) As QueryCompilationContextDependencies

Parameters

model
IModel

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IQueryableMethodTranslatingExpressionVisitorFactory)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies With (Microsoft.EntityFrameworkCore.Query.IQueryableMethodTranslatingExpressionVisitorFactory queryableMethodTranslatingExpressionVisitorFactory);
member this.With : Microsoft.EntityFrameworkCore.Query.IQueryableMethodTranslatingExpressionVisitorFactory -> Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies
Public Function With (queryableMethodTranslatingExpressionVisitorFactory As IQueryableMethodTranslatingExpressionVisitorFactory) As QueryCompilationContextDependencies

Parameters

queryableMethodTranslatingExpressionVisitorFactory
IQueryableMethodTranslatingExpressionVisitorFactory

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IQueryTranslationPostprocessorFactory)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies With (Microsoft.EntityFrameworkCore.Query.IQueryTranslationPostprocessorFactory queryTranslationPostprocessorFactory);
member this.With : Microsoft.EntityFrameworkCore.Query.IQueryTranslationPostprocessorFactory -> Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies
Public Function With (queryTranslationPostprocessorFactory As IQueryTranslationPostprocessorFactory) As QueryCompilationContextDependencies

Parameters

queryTranslationPostprocessorFactory
IQueryTranslationPostprocessorFactory

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IQueryTranslationPreprocessorFactory)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies With (Microsoft.EntityFrameworkCore.Query.IQueryTranslationPreprocessorFactory queryTranslationPreprocessorFactory);
member this.With : Microsoft.EntityFrameworkCore.Query.IQueryTranslationPreprocessorFactory -> Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies
Public Function With (queryTranslationPreprocessorFactory As IQueryTranslationPreprocessorFactory) As QueryCompilationContextDependencies

Parameters

queryTranslationPreprocessorFactory
IQueryTranslationPreprocessorFactory

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IShapedQueryCompilingExpressionVisitorFactory)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies With (Microsoft.EntityFrameworkCore.Query.IShapedQueryCompilingExpressionVisitorFactory shapedQueryCompilingExpressionVisitorFactory);
member this.With : Microsoft.EntityFrameworkCore.Query.IShapedQueryCompilingExpressionVisitorFactory -> Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies
Public Function With (shapedQueryCompilingExpressionVisitorFactory As IShapedQueryCompilingExpressionVisitorFactory) As QueryCompilationContextDependencies

Parameters

shapedQueryCompilingExpressionVisitorFactory
IShapedQueryCompilingExpressionVisitorFactory

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IExecutionStrategyFactory)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies With (Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory executionStrategyFactory);
member this.With : Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory -> Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies
Public Function With (executionStrategyFactory As IExecutionStrategyFactory) As QueryCompilationContextDependencies

Parameters

executionStrategyFactory
IExecutionStrategyFactory

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to