public override void Commit() { if (_db != null) { _db.Commit(); _db = null; } else { throw new InvalidOperationException("Transaction already finished"); } }
public override void Rollback() { _db.Rollback(); _db = null; }
public MyTransactionWrapper(SqlFuConnection db) { _db = db; }
public SqlFuCommand(SqlFuConnection cnx) { _cnx = cnx; _cfg = cnx.SqlFuConfig(); _cmd = cnx.Connection.CreateCommand(); }