共用方式為


ServiceCollectionMap(IServiceCollection) 建構函式

定義

建立新的 ServiceCollectionMap ,以在指定的 IServiceCollection 上運作。

public ServiceCollectionMap (Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection);
new Microsoft.EntityFrameworkCore.Infrastructure.ServiceCollectionMap : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.EntityFrameworkCore.Infrastructure.ServiceCollectionMap
Public Sub New (serviceCollection As IServiceCollection)

參數

serviceCollection
IServiceCollection

要使用的集合。

適用於