Exemple #1
0
 public override bool save()
 {
     if (!isValid(new List<string>() { "chID"}))
         return false;
     string sqlCommand = String.Format(@"insert into CommonHouse (chHeight,chFrontGap,chFloor,chFloorHeight,chBackGapRatio,chBackGap,vID)
             values({0},{1},{2},{3},{4},{5},{6})", chHeight, chFrontGap, chFloor, chFloorHeight, chBackGapRatio, chBackGap, vID);
     Sql sql = new Sql();
     return sql.insertCommonHouse(sqlCommand);
 }