IInternalServiceCollectionMap 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
暴露方法,允許提供者在內部服務提供者上註冊 EF 服務依賴物件。
此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。
public interface IInternalServiceCollectionMap
type IInternalServiceCollectionMap = interface
Public Interface IInternalServiceCollectionMap
備註
更多資訊與範例請參見 資料庫提供者與擴充功能的實作 。
方法
| 名稱 | Description |
|---|---|
| AddDependencyScoped<TDependencies>() |
新增一個 Scoped 相依物件。 |
| AddDependencySingleton<TDependencies>() |
新增一個 Singleton 相依物件。 |