Share via


ModelSourceDependencies.With Method

Definition

Overloads

With(IModelCacheKeyFactory)

Clones this dependency parameter object with one service replaced.

With(IModelCustomizer)

Clones this dependency parameter object with one service replaced.

With(ICoreConventionSetBuilder)

Clones this dependency parameter object with one service replaced.

With(IMemoryCache)

Clones this dependency parameter object with one service replaced.

With(IModelCacheKeyFactory)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Infrastructure.ModelSourceDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.IModelCacheKeyFactory modelCacheKeyFactory);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.IModelCacheKeyFactory -> Microsoft.EntityFrameworkCore.Infrastructure.ModelSourceDependencies
Public Function With (modelCacheKeyFactory As IModelCacheKeyFactory) As ModelSourceDependencies

Parameters

modelCacheKeyFactory
IModelCacheKeyFactory

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(IModelCustomizer)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Infrastructure.ModelSourceDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.IModelCustomizer modelCustomizer);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.IModelCustomizer -> Microsoft.EntityFrameworkCore.Infrastructure.ModelSourceDependencies
Public Function With (modelCustomizer As IModelCustomizer) As ModelSourceDependencies

Parameters

modelCustomizer
IModelCustomizer

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to

With(ICoreConventionSetBuilder)

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Infrastructure.ModelSourceDependencies With (Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ICoreConventionSetBuilder coreConventionSetBuilder);
member this.With : Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ICoreConventionSetBuilder -> Microsoft.EntityFrameworkCore.Infrastructure.ModelSourceDependencies
Public Function With (coreConventionSetBuilder As ICoreConventionSetBuilder) As ModelSourceDependencies

Parameters

coreConventionSetBuilder
Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ICoreConventionSetBuilder

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.Infrastructure.ModelSourceDependencies With (Microsoft.Extensions.Caching.Memory.IMemoryCache memoryCache);
member this.With : Microsoft.Extensions.Caching.Memory.IMemoryCache -> Microsoft.EntityFrameworkCore.Infrastructure.ModelSourceDependencies
Public Function With (memoryCache As IMemoryCache) As ModelSourceDependencies

Parameters

memoryCache
IMemoryCache

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to