Example #1
0
 public bool saveWithoutCheck()
 {
     string sqlCommand = String.Format(@"Insert into Village (prID,vName,vBoundary,vInUse) values({0},'{1}','{2}',{3})"
         , prID, vName, vBoundary, vInUse ? 1 : 0);
     Sql sql = new Sql();
     return sql.insertVillage(sqlCommand);
 }
Example #2
0
 public override bool save()
 {
     if (!isValid(new List<string>() { "vID" }))
         return false;
     string sqlCommand = String.Format(@"Insert into Village (prID,vName,vBoundary,vInUse) values({0},'{1}','{2}',{3})"
         , prID, vName, vBoundary, vInUse ? 1 : 0);
     Sql sql = new Sql();
     return sql.insertVillage(sqlCommand);
 }