TransactionHandler.ConnectionTimeoutGot 方法
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
可在派生类中实现。
命名空间: System.Data.Entity.Infrastructure
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
Public Overridable Sub ConnectionTimeoutGot ( _
connection As DbConnection, _
interceptionContext As DbConnectionInterceptionContext(Of Integer) _
)
用法
Dim instance As TransactionHandler
Dim connection As DbConnection
Dim interceptionContext As DbConnectionInterceptionContext(Of Integer)
instance.ConnectionTimeoutGot(connection, _
interceptionContext)
public virtual void ConnectionTimeoutGot(
DbConnection connection,
DbConnectionInterceptionContext<int> interceptionContext
)
public:
virtual void ConnectionTimeoutGot(
DbConnection^ connection,
DbConnectionInterceptionContext<int>^ interceptionContext
)
abstract ConnectionTimeoutGot :
connection:DbConnection *
interceptionContext:DbConnectionInterceptionContext<int> -> unit
override ConnectionTimeoutGot :
connection:DbConnection *
interceptionContext:DbConnectionInterceptionContext<int> -> unit
public function ConnectionTimeoutGot(
connection : DbConnection,
interceptionContext : DbConnectionInterceptionContext<int>
)
参数
- connection
类型:System.Data.Common.DbConnection
连接。
- interceptionContext
类型:DbConnectionInterceptionContext<Int32>
与调用关联的上下文信息。
请参阅
参考
System.Data.Entity.Infrastructure 命名空间
ConnectionTimeoutGot(DbConnection, DbConnectionInterceptionContextInt32)