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); }
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); }