Ejemplo n.º 1
0
 public bool saveWithoutCheck()
 {
     string sqlCommand = String.Format(@"insert into InnerRoad (prID,vID,irName,irPath) values ({0},{1},'{2}','{3}')"
         , prID, vID, irName, irPath);
     Sql sql = new Sql();
     return sql.insertInnerRoad(sqlCommand);
 }
Ejemplo n.º 2
0
 public override bool save()
 {
     if (!isValid(new List<string>() { "irID" }))
         return false;
     string sqlCommand = String.Format(@"insert into InnerRoad (prID,vID,irName,irPath) values ({0},{1},'{2}','{3}')"
         , prID, vID, irName, irPath);
     Sql sql = new Sql();
     return sql.insertInnerRoad(sqlCommand);
 }