ModelSourceDependencies.With 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
With(IModelCacheKeyFactory) |
克隆此依赖项参数对象,并替换了一个服务。 |
With(IModelCustomizer) |
克隆此依赖项参数对象,并替换了一个服务。 |
With(ICoreConventionSetBuilder) |
克隆此依赖项参数对象,并替换了一个服务。 |
With(IMemoryCache) |
克隆此依赖项参数对象,并替换了一个服务。 |
With(IModelCacheKeyFactory)
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
克隆此依赖项参数对象,并替换了一个服务。
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)
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
克隆此依赖项参数对象,并替换了一个服务。
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)
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
克隆此依赖项参数对象,并替换了一个服务。
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)
- Source:
- ModelSourceDependencies.cs
- Source:
- ModelSourceDependencies.cs
克隆此依赖项参数对象,并替换了一个服务。
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
此类型的当前依赖项的替代项。
返回
替换了给定服务的新参数对象。