共用方式為


RelationalDatabaseFacadeExtensions.OpenConnection(DatabaseFacade) 方法

定義

開啟基礎 DbConnection

public static void OpenConnection (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade);
static member OpenConnection : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade -> unit
<Extension()>
Public Sub OpenConnection (databaseFacade As DatabaseFacade)

參數

databaseFacade
DatabaseFacade

DatabaseFacade內容的 。

備註

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

適用於