Beispiel #1
0
 public bool saveWithoutCheck()
 {
     string sqlCommand = String.Format("insert into Condition (cdName,cdType,cdCategory,lID,prID,cdValue) values('{0}',{1},{2},{3},{4},{5})"
         , cdName, cdType, cdCategory, labelID, prID, cdValue);
     Sql sql = new Sql();
     return sql.insertCondition(sqlCommand);
 }
Beispiel #2
0
 public override bool save()
 {
     if (!isValid(new List<string>() { "cdID"}))
         return false;
     string sqlCommand = String.Format("insert into Condition (cdName,cdType,cdCategory,lID,prID,cdValue) values('{0}',{1},{2},{3},{4},{5})"
         , cdName, cdType, cdCategory, labelID, prID, cdValue);
     Sql sql = new Sql();
     return sql.insertCondition(sqlCommand);
 }