Share via


ShapedQueryCompilingExpressionVisitorDependencies.With Method

Definition

Overloads

With(IEntityMaterializerSource)

Clones this dependency parameter object with one service replaced.

With(ITypeMappingSource)

Clones this dependency parameter object with one service replaced.

With(IMemoryCache)

Clones this dependency parameter object with one service replaced.

With(IEntityMaterializerSource)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitorDependencies With (Microsoft.EntityFrameworkCore.Query.IEntityMaterializerSource entityMaterializerSource);
member this.With : Microsoft.EntityFrameworkCore.Query.IEntityMaterializerSource -> Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitorDependencies
Public Function With (entityMaterializerSource As IEntityMaterializerSource) As ShapedQueryCompilingExpressionVisitorDependencies

Parameters

entityMaterializerSource
IEntityMaterializerSource

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(ITypeMappingSource)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitorDependencies With (Microsoft.EntityFrameworkCore.Storage.ITypeMappingSource typeMappingSource);
member this.With : Microsoft.EntityFrameworkCore.Storage.ITypeMappingSource -> Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitorDependencies
Public Function With (typeMappingSource As ITypeMappingSource) As ShapedQueryCompilingExpressionVisitorDependencies

Parameters

typeMappingSource
ITypeMappingSource

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IMemoryCache)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitorDependencies With (Microsoft.Extensions.Caching.Memory.IMemoryCache memoryCache);
member this.With : Microsoft.Extensions.Caching.Memory.IMemoryCache -> Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitorDependencies
Public Function With (memoryCache As IMemoryCache) As ShapedQueryCompilingExpressionVisitorDependencies

Parameters

memoryCache
IMemoryCache

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to