語言

EntityFrameworkServicesBuilder.TryAddCoreServices 方法

定義

登錄所有尚未由提供者註冊的服務的預設實作。 資料庫提供者必須將此方法視為服務註冊的最後一步——也就是在所有提供者服務註冊完成後。

public virtual Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkServicesBuilder TryAddCoreServices();
abstract member TryAddCoreServices : unit -> Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkServicesBuilder
override this.TryAddCoreServices : unit -> Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkServicesBuilder
Public Overridable Function TryAddCoreServices () As EntityFrameworkServicesBuilder

傳回

此建構器,使得後續呼叫可以串聯。

備註

更多資訊與範例請參見 資料庫提供者與擴充功能的實作 。

適用於