ModelSourceDependencies.With Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
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)
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
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)
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
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)
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
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
Entity Framework