public IDbTransaction BeginTransaction(IsolationLevel il) { using (ExecuteHelper.Begin(dur => context.FireExecuteEvent(this, String.Format("BeginTransaction({0})", il), dur))) { return(new DbTransactionProxy(connection.BeginTransaction(il), context)); } }
public int ExecuteNonQuery() { using (ExecuteHelper.Begin(dur => context.FireExecuteEvent(this, "ExecuteNonQuery", dur))) { return(command.ExecuteNonQuery()); } }
protected override System.Data.Common.DbTransaction BeginDbTransaction(IsolationLevel isolationLevel) { using (ExecuteHelper.Begin(dur => context.FireExecuteEvent("BeginTransaction", dur, GetThreadId()))) { return(new DbTransactionProxy(connection.BeginTransaction(), context, GetThreadId())); } }
public override void Commit() { using (ExecuteHelper.Begin(dur => context.FireExecuteEvent(this, "Commit", dur))) { Transaction.Commit(); } }
public override int ExecuteNonQuery() { using (ExecuteHelper.Begin(dur => context.FireExecuteEvent(this, "ExecuteNonQuery", dur, DbConnectionProxy.GetThreadId()))) { return(command.ExecuteNonQuery()); } }