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