Inheritance: System.Data.Common.DbConnection
示例#1
0
 public override void Commit()
 {
     if (_db != null)
     {
         _db.Commit();
         _db = null;
     }
     else
     {
         throw new InvalidOperationException("Transaction already finished");
     }
 }
示例#2
0
 public override void Rollback()
 {
     _db.Rollback();
     _db = null;
 }
示例#3
0
 public MyTransactionWrapper(SqlFuConnection db)
 {
     _db = db;
 }
示例#4
0
 public SqlFuCommand(SqlFuConnection cnx)
 {
     _cnx = cnx;
     _cfg = cnx.SqlFuConfig();
     _cmd = cnx.Connection.CreateCommand();
 }
示例#5
0
 public override void Rollback()
 {
     _db.Rollback();
     _db = null;
 }
示例#6
0
 public override void Commit()
 {
     if (_db != null)
     {
         _db.Commit();
         _db = null;
     }
     else
     {
         throw new InvalidOperationException("Transaction already finished");
     }
 }
示例#7
0
 public MyTransactionWrapper(SqlFuConnection db)
 {
     _db = db;
 }