TransactionHandler クラス
[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]
トランザクション操作を処理するインターセプターの基本クラスを表します。 派生クラスは SetDefaultTransactionHandler(Func<TransactionHandler>) または SetTransactionHandler(String, Func<TransactionHandler>, String) を使用して登録できます。
継承階層
System.Object
System.Data.Entity.Infrastructure.TransactionHandler
System.Data.Entity.Infrastructure.CommitFailureHandler
名前空間: System.Data.Entity.Infrastructure
アセンブリ: EntityFramework (EntityFramework.dll 内)
構文
'宣言
Public MustInherit Class TransactionHandler _
Implements IDisposable
'使用
Dim instance As TransactionHandler
public abstract class TransactionHandler : IDisposable
public ref class TransactionHandler abstract : IDisposable
[<AbstractClassAttribute>]
type TransactionHandler =
class
interface IDisposable
end
public abstract class TransactionHandler implements IDisposable
TransactionHandler 型で公開されるメンバーは以下のとおりです。
コンストラクター
名前 | 説明 | |
---|---|---|
![]() |
TransactionHandler | TransactionHandler クラスの新しいインスタンスを初期化します。 |
上揃え
プロパティ
名前 | 説明 | |
---|---|---|
![]() |
Connection | トランザクション操作が処理される接続を取得します。 |
![]() |
DbContext | トランザクション操作が処理されるコンテキストを取得します。 |
![]() |
IsDisposed | このトランザクション ハンドラーが破棄されているかどうかを示す値を取得または設定します。 |
![]() |
ObjectContext | トランザクション操作が処理されるコンテキストを取得します。 |
上揃え
メソッド
上揃え
スレッド セーフ
この型のすべてのパブリック static (Visual Basic では Shared) メンバーは、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。