Beispiel #1
0
        public void PerformTransaction()
        {
            SQLite3Query sqlite = new SQLite3Query();

            Assert.IsTrue(sqlite.TestConnection(connectionString, true, false));
            Assert.AreEqual(
                sqlite.PerformTransaction(new SQLiteQueryStatement[] {
                new SQLiteQueryStatement()
                {
                    QuerySql        = "insert into test (f1) values (@v);",
                    QueryParameters = new SQLiteParameter[] {
                        new SQLiteParameter("@v", "transaction_test_1")
                    }
                },
                new SQLiteQueryStatement()
                {
                    QuerySql        = "insert into test (f1) values (@v);",
                    QueryParameters = new SQLiteParameter[] {
                        new SQLiteParameter("@v", "transaction_test_1")
                    }
                }
            }), 2);
        }