public void TestDelete() { var test = TestExten.GetModel("1=1", "id"); var row = test.Delete(); Assert.AreEqual(1, row); }
public void TestGetModelByPrimary() { var data = TestExten.GetModel("1=1", "id"); var test = TestExten.GetModel(data.id); Assert.IsNotNull(test); }
public void TestDeleteByPrimary() { var test = TestExten.GetModel("1=1", "id"); var row = TestExten.Delete(test.id); Assert.AreEqual(1, row); }
public void TestUpdate() { var test = TestExten.GetModel("1=1", "id"); test.Time = DateTime.Now; var row = test.Update(); Assert.AreEqual(1, row); }
public void TestGetModel() { var test = TestExten.GetModel("1=1", "id desc"); Assert.IsNotNull(test); }