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