DbConnectionDispatcher.OpenAsync 方法

定义

public virtual System.Threading.Tasks.Task OpenAsync (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbInterceptionContext interceptionContext, System.Threading.CancellationToken cancellationToken);
abstract member OpenAsync : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbInterceptionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OpenAsync : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbInterceptionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task

参数

connection
DbConnection

将对其执行操作的连接。

interceptionContext
DbInterceptionContext

有关进行调用的上下文的可选信息。

cancellationToken
CancellationToken

取消标记。

返回

表示异步操作的任务。

适用于