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); }
public void TestDeleteByPrimary() { var test = TestExten.GetModel("1=1", "id"); var row = TestExten.Delete(test.id); Assert.AreEqual(1, row); }