ServiceCollectionMap 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供一个地图,该映射 IServiceCollection 允许 ServiceDescriptor 在每次完成此操作时对服务集合进行线性扫描即可有条件地添加或重新写入条目。
[System.Runtime.CompilerServices.Nullable(0)]
public class ServiceCollectionMap : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Infrastructure.IInternalServiceCollectionMap>
public class ServiceCollectionMap : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Internal.InternalServiceCollectionMap>
public class ServiceCollectionMap : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Infrastructure.IInternalServiceCollectionMap>
[<System.Runtime.CompilerServices.Nullable(0)>]
type ServiceCollectionMap = class
interface IInfrastructure<IInternalServiceCollectionMap>
type ServiceCollectionMap = class
interface IInfrastructure<InternalServiceCollectionMap>
type ServiceCollectionMap = class
interface IInfrastructure<IInternalServiceCollectionMap>
Public Class ServiceCollectionMap
Implements IInfrastructure(Of IInternalServiceCollectionMap)
Public Class ServiceCollectionMap
Implements IInfrastructure(Of InternalServiceCollectionMap)
- 继承
-
ServiceCollectionMap
- 特性
- 实现
-
IInfrastructure<IInternalServiceCollectionMap> IInfrastructure<Microsoft.EntityFrameworkCore.Internal.InternalServiceCollectionMap>
注解
请注意,在由地图管理集合时,不应以其他方式修改集合。 使用地图进行修改后,可以正常使用集合。
有关详细信息和示例,请参阅 数据库提供程序和扩展的实现 。
构造函数
| 名称 | 说明 |
|---|---|
| ServiceCollectionMap(IServiceCollection) |
创建用于对给定IServiceCollection操作的一个新ServiceCollectionMap项。 |
属性
| 名称 | 说明 |
|---|---|
| ServiceCollection |
方法
显式接口实现
| 名称 | 说明 |
|---|---|
| IInfrastructure<IInternalServiceCollectionMap>.Instance |
提供一个地图,该映射 IServiceCollection 允许 ServiceDescriptor 在每次完成此操作时对服务集合进行线性扫描即可有条件地添加或重新写入条目。 |
| IInfrastructure<InternalServiceCollectionMap>.Instance |
提供一个地图,该映射 IServiceCollection 允许 ServiceDescriptor 在每次完成此操作时对服务集合进行线性扫描即可有条件地添加或重新写入条目。 |
扩展方法
| 名称 | 说明 |
|---|---|
| GetInfrastructure<T>(IInfrastructure<T>) |
从正在使用的隐藏 IInfrastructure<T>属性中获取值。 此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。 |