共用方式為


RelationalDatabaseFacadeExtensions.GetConnectionString(DatabaseFacade) 方法

定義

取得為此 DbContext 設定的基礎連接字串。

public static string GetConnectionString (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade);
public static string? GetConnectionString (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade);
static member GetConnectionString : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade -> string
<Extension()>
Public Function GetConnectionString (databaseFacade As DatabaseFacade) As String

參數

databaseFacade
DatabaseFacade

DatabaseFacade內容的 。

傳回

連接字串。

備註

如需詳細資訊 和範例,請參閱連線和連接字串

適用於