示例#1
0
 public void TestDelete2()
 {
     DbObjects.SQLServer.DbObject db = new DbObjects.SQLServer.DbObject();
     db.DbConnectStr = ConnStr;
     Assert.AreEqual(db.Delete("where sore<" + db.GetParameterName("sore"), "students", null,
         new KeyValuePair<string, object>(db.GetParameterName("sore"), 50)),true);
 }
 public void TestDelete2()
 {
     DbObjects.SQLServer.DbObject db = new DbObjects.SQLServer.DbObject();
     db.DbConnectStr = ConnStr;
     Assert.AreEqual(db.Delete("where sore<" + db.GetParameterName("sore"), "students", null,
                               new KeyValuePair <string, object>(db.GetParameterName("sore"), 50)), true);
 }
示例#3
0
 public void TestDelete()
 {
     DbObjects.SQLServer.DbObject db = new DbObjects.SQLServer.DbObject();
     db.DbConnectStr = ConnStr;
     Student student=new Student();
     student.ID = 6;
     Assert.AreEqual(db.Delete(student),true);
 }
        public void TestDelete()
        {
            DbObjects.SQLServer.DbObject db = new DbObjects.SQLServer.DbObject();
            db.DbConnectStr = ConnStr;
            Student student = new Student();

            student.ID = 6;
            Assert.AreEqual(db.Delete(student), true);
        }