Esempio n. 1
0
        public void TwoRows()
        {
            var tableName = ObjectName.Parse("APP.test_table");
            var expr      = SqlExpression.Parse("last_name = 'Provenzano'");

            var count = AdminQuery.Delete(tableName, expr);

            Assert.AreEqual(2, count);

            var table = AdminQuery.Access().GetTable(tableName);

            Assert.AreEqual(0, table.RowCount);
        }
Esempio n. 2
0
        public void OnlyOneRow()
        {
            var tableName = ObjectName.Parse("APP.test_table");
            var expr      = SqlExpression.Parse("first_name = 'Antonello'");

            var count = AdminQuery.Delete(tableName, expr);

            Assert.AreEqual(1, count);

            var table = AdminQuery.Access().GetTable(tableName);

            Assert.AreEqual(1, table.RowCount);
        }