Esempio n. 1
0
        public void TestDeleteListByPrimaryArray()
        {
            var list = TestExten.GetList("1=1").Take(2).ToList();
            var row  = TestExten.Delete(list.Select(m => m.id).ToArray());

            Assert.AreEqual(list.Count, row);
        }
Esempio n. 2
0
        public void TestDeleteByPrimary()
        {
            var test = TestExten.GetModel("1=1", "id");
            var row  = TestExten.Delete(test.id);

            Assert.AreEqual(1, row);
        }