コード例 #1
0
ファイル: TransactionTest.cs プロジェクト: 15831944/virtuoso
        public void RollbackNoWork(TestCaseResult result)
        {
            CheckTransactionCapable(result);

            CheckTable(result);
            VirtuosoTransaction t = connection.BeginTransaction();

            result.FailIfNotSame(connection, t.Connection);
            t.Rollback();
            CheckTable(result);
        }
コード例 #2
0
ファイル: TransactionTest.cs プロジェクト: 15831944/virtuoso
        public void Rollback(TestCaseResult result)
        {
            CheckTransactionCapable(result);

            CheckTable(result);
            VirtuosoTransaction t = connection.BeginTransaction();

            InsertRow(3);
            InsertRow(4);
            CheckTable(result);
            t.Rollback();
            DeleteRow(3);
            DeleteRow(4);
            CheckTable(result);
        }