ModelSourceDependencies.With 方法

定义

重载

With(IModelCacheKeyFactory)

克隆此依赖项参数对象,并替换了一个服务。

With(IModelCustomizer)

克隆此依赖项参数对象,并替换了一个服务。

With(ICoreConventionSetBuilder)

克隆此依赖项参数对象,并替换了一个服务。

With(IMemoryCache)

克隆此依赖项参数对象,并替换了一个服务。

With(IModelCacheKeyFactory)

克隆此依赖项参数对象,并替换了一个服务。

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

参数

modelCacheKeyFactory
IModelCacheKeyFactory

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于

With(IModelCustomizer)

克隆此依赖项参数对象,并替换了一个服务。

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

参数

modelCustomizer
IModelCustomizer

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于

With(ICoreConventionSetBuilder)

克隆此依赖项参数对象,并替换了一个服务。

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

参数

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

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于

With(IMemoryCache)

克隆此依赖项参数对象,并替换了一个服务。

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

参数

memoryCache
IMemoryCache

此类型的当前依赖项的替代项。

返回

替换了给定服务的新参数对象。

适用于