示例#1
0
 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());
     }
 }
示例#3
0
 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();
     }
 }
示例#5
0
 public override int ExecuteNonQuery()
 {
     using (ExecuteHelper.Begin(dur => context.FireExecuteEvent(this, "ExecuteNonQuery", dur, DbConnectionProxy.GetThreadId())))
     {
         return(command.ExecuteNonQuery());
     }
 }