Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }