public void TestDeleteAllRecords() { var db = new NLORMMSSQLDb(connectionString); int totalcount = db.Query<TestClassOne>().Count(); int dc = db.Delete<TestClassOne>(); var items = db.Query<TestClassOne>(); Assert.AreEqual(dc, totalcount); }
public void TestDeleteAllRecords() { var db = new NLORMMSSQLDb(connectionString); insertdata(db); int totalcount = db.Query <TestClassOne>().Count(); int dc = db.Delete <TestClassOne>(); var items = db.Query <TestClassOne>(); Assert.AreEqual(dc, totalcount); }