Esempio n. 1
0
        public void FailNestedSavepointTransaction()
        {
            try
            {
                db.RunInTransaction(() =>
                {
                    db.Delete(testObjects[0]);

                    db.RunInTransaction(() =>
                    {
                        db.Delete(testObjects[1]);

                        throw new TransactionTestException();
                    });
                });
            }
            catch (TransactionTestException)
            {
                // ignore
            }

            Assert.AreEqual(testObjects.Count, db.Table <TestObj>().Count());
        }