コード例 #1
0
        public void Rollback(Enlistment enlistment) {
            SqliteAdoConnection cnn = _transaction.Connection;
            cnn._enlistment = null;

            try {
                _transaction.Rollback();
                enlistment.Done();
            }
            finally {
                Cleanup(cnn);
            }
        }
コード例 #2
0
        public void Commit(Enlistment enlistment) {
            SqliteAdoConnection cnn = _transaction.Connection;
            cnn._enlistment = null;

            try {
                _transaction.IsValid(true);
                _transaction.Connection._transactionLevel = 1;
                _transaction.Commit();

                enlistment.Done();
            }
            finally {
                Cleanup(cnn);
            }
        }
コード例 #3
0
 public void InDoubt(Enlistment enlistment) {
     enlistment.Done();
 }