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上下文的 。

返回

表示异步操作的任务。

注解

有关详细信息 和示例,请参阅连接和连接字符串

适用于