TransactionHandler.Opening - метод
[Эта страница относится к документации к Entity Framework 6. Последняя версия доступна в составе пакета Entity Framework NuGet. Дополнительные сведения об Entity Framework см. в разделе msdn.com/data/ef.]
Может быть реализовано в производном классе.
Пространство имен: System.Data.Entity.Infrastructure
Сборка: EntityFramework (в EntityFramework.dll)
Синтаксис
'Декларация
Public Overridable Sub Opening ( _
connection As DbConnection, _
interceptionContext As DbConnectionInterceptionContext _
)
'Применение
Dim instance As TransactionHandler
Dim connection As DbConnection
Dim interceptionContext As DbConnectionInterceptionContext
instance.Opening(connection, interceptionContext)
public virtual void Opening(
DbConnection connection,
DbConnectionInterceptionContext interceptionContext
)
public:
virtual void Opening(
DbConnection^ connection,
DbConnectionInterceptionContext^ interceptionContext
)
abstract Opening :
connection:DbConnection *
interceptionContext:DbConnectionInterceptionContext -> unit
override Opening :
connection:DbConnection *
interceptionContext:DbConnectionInterceptionContext -> unit
public function Opening(
connection : DbConnection,
interceptionContext : DbConnectionInterceptionContext
)
Параметры
- connection
Тип: System.Data.Common.DbConnection
Открываемое соединение.
- interceptionContext
Тип: DbConnectionInterceptionContext
Контекстные сведения, связанные с вызовом.
См. также
Справочник
System.Data.Entity.Infrastructure - пространство имен
Opening(DbConnection, DbConnectionInterceptionContext)