public void Dispose() { if (this.db != null) { this.db.Close(); this.db = null; } }
/// <summary> /// 回滚事务 /// </summary> public void Rollback() { current = null; if (this.db != null && !this.db.IsDisposed) { this.db.Rollback(); this.db = null; } }
/// <summary> /// 提交事务 /// </summary> public void Commit() { current = null; if (this.db != null && !this.db.IsDisposed) { this.db.Commit(); this.db = null; } }
internal void Clear() { current = null; this.db = null; }
internal AfxTransaction(AfxDapper db) { this.db = db; current = this; }
public CloseConnection(AfxDapper db) { this.db = db; }