TransactionContext Constructor (DbConnection)

 

Initializes a new instance of the TransactionContext class.

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

public TransactionContext(
	DbConnection existingConnection
)

Parameters

existingConnection
Type: System.Data.Common.DbConnection

The connection used by the context for which the transactions will be recorded.