語言

EntityFrameworkDesignServicesBuilder.TryAddCoreServices 方法

定義

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

public override Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkServicesBuilder TryAddCoreServices();
override this.TryAddCoreServices : unit -> Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkServicesBuilder
Public Overrides Function TryAddCoreServices () As EntityFrameworkServicesBuilder

傳回

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

適用於