共用方式為


RelationalDatabaseFacadeExtensions.CloseConnectionAsync 方法

定義

關閉基礎 DbConnection

public static System.Threading.Tasks.Task CloseConnectionAsync (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade);
static member CloseConnectionAsync : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade -> System.Threading.Tasks.Task
<Extension()>
Public Function CloseConnectionAsync (databaseFacade As DatabaseFacade) As Task

參數

databaseFacade
DatabaseFacade

DatabaseFacade內容的 。

傳回

代表非同步作業的工作。

備註

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

適用於