示例#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);
        }
示例#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);
        }