Поделиться через


TransactionHandler.ServerVersionGot - метод

[Эта страница относится к документации к Entity Framework 6. Последняя версия доступна в составе пакета Entity Framework NuGet. Дополнительные сведения об Entity Framework см. в разделе msdn.com/data/ef.]

Может быть реализовано в производном классе.

Пространство имен:  System.Data.Entity.Infrastructure
Сборка:  EntityFramework (в EntityFramework.dll)

Синтаксис

'Декларация
Public Overridable Sub ServerVersionGot ( _
    connection As DbConnection, _
    interceptionContext As DbConnectionInterceptionContext(Of String) _
)
'Применение
Dim instance As TransactionHandler 
Dim connection As DbConnection 
Dim interceptionContext As DbConnectionInterceptionContext(Of String)

instance.ServerVersionGot(connection, _
    interceptionContext)
public virtual void ServerVersionGot(
    DbConnection connection,
    DbConnectionInterceptionContext<string> interceptionContext
)
public:
virtual void ServerVersionGot(
    DbConnection^ connection, 
    DbConnectionInterceptionContext<String^>^ interceptionContext
)
abstract ServerVersionGot : 
        connection:DbConnection * 
        interceptionContext:DbConnectionInterceptionContext<string> -> unit  
override ServerVersionGot : 
        connection:DbConnection * 
        interceptionContext:DbConnectionInterceptionContext<string> -> unit
public function ServerVersionGot(
    connection : DbConnection, 
    interceptionContext : DbConnectionInterceptionContext<String>
)

Параметры

  • interceptionContext
    Тип: DbConnectionInterceptionContext<String>
    Контекстные сведения, связанные с вызовом.

См. также

Справочник

TransactionHandler Класс

System.Data.Entity.Infrastructure - пространство имен

ServerVersionGot(DbConnection, DbConnectionInterceptionContextString)