共用方式為


IInternalServiceCollectionMap.AddDependencyScoped<TDependencies> 方法

定義

加入相 Scoped 依性物件。

public Microsoft.EntityFrameworkCore.Infrastructure.IInternalServiceCollectionMap AddDependencyScoped<TDependencies> ();
abstract member AddDependencyScoped : unit -> Microsoft.EntityFrameworkCore.Infrastructure.IInternalServiceCollectionMap
Public Function AddDependencyScoped(Of TDependencies) () As IInternalServiceCollectionMap

類型參數

TDependencies

相依性類型。

傳回

相同的集合對應,以便進一步的方法可以鏈結。

適用於