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