internal LocalTransaction(DbResourceAllocator dbHelper, ManualResetEvent handle) { if (handle == null) { throw new ArgumentNullException("handle"); } this.connection = dbHelper.OpenNewConnectionNoEnlist(); this.transaction = this.connection.BeginTransaction(); this.handle = handle; }
internal LocalTransaction(DbResourceAllocator dbHelper, ManualResetEvent handle) { if (handle == null) { throw new ArgumentNullException("handle"); } this.connection = dbHelper.OpenNewConnectionNoEnlist(); this.transaction = this.connection.BeginTransaction(); this.handle = handle; }
/// <summary> /// Wraps a local transaction inside /// </summary> /// <param name="dbHelper"></param> internal LocalTransaction(DbResourceAllocator dbHelper, ManualResetEvent handle) { if (null == handle) throw new ArgumentNullException("handle"); // Open a connection that specifically does not auto-enlist ("Enlist=false" in connection string) // to prevent auto-promotion of the transaction this.connection = dbHelper.OpenNewConnectionNoEnlist(); this.transaction = this.connection.BeginTransaction(); this.handle = handle; }
/// <summary> /// Wraps a local transaction inside /// </summary> /// <param name="dbHelper"></param> internal LocalTransaction(DbResourceAllocator dbHelper, ManualResetEvent handle) { if (null == handle) { throw new ArgumentNullException("handle"); } // Open a connection that specifically does not auto-enlist ("Enlist=false" in connection string) // to prevent auto-promotion of the transaction this.connection = dbHelper.OpenNewConnectionNoEnlist(); this.transaction = this.connection.BeginTransaction(); this.handle = handle; }