Beispiel #1
0
 public bool saveWithoutCheck()
 {
     string sqlCommand = String.Format(@"insert into NetSize (nsWidth,nsHeight,prID) values({0},{1},{2})",
         nsWidth, nsHeight, prID);
     Sql sql = new Sql();
     return sql.insertNetSize(sqlCommand);
 }
Beispiel #2
0
 public override bool save()
 {
     if (!isValid(new List<string>() { "nsID"}))
         return false;
     string sqlCommand = String.Format(@"insert into NetSize (nsWidth,nsHeight,prID) values({0},{1},{2})", 
         nsWidth, nsHeight, prID);
     Sql sql = new Sql();
     return sql.insertNetSize(sqlCommand);
 }