Esempio n. 1
0
        public void InserCity()
        {
            string sql2 = SQLHelper.AddCity("San Francisco", "SAD", "Very nice city");

            SQLHelper.ExecuteCommand(sql2);

            sql2 = SQLHelper.AddCity("Toronto", "SAD", "City of night life");
            SQLHelper.ExecuteCommand(sql2);
        }
Esempio n. 2
0
        public void InsertUsers()
        {
            string sql = SQLHelper.GetSqlCommand("srdjan", "tomic", "admin", "pass", "saltt", "hash", "admin");

            SQLHelper.ExecuteCommand(sql);

            string sql1 = SQLHelper.GetSqlCommand("srdjan", "topic", "user", "pass", "saltt", "hash", "regular");

            SQLHelper.ExecuteCommand(sql1);
        }
Esempio n. 3
0
        public void InserCity()
        {
            string sql2 = SQLHelper.AddCity("San Francisco", "Serbia", "Very nice city");

            SQLHelper.ExecuteCommand(sql2);

            sql2 = SQLHelper.AddCity("Toronto", "Serbia", "City of night life");
            SQLHelper.ExecuteCommand(sql2);

            sql2 = SQLHelper.AddCity("Moscow", "France", "City of lights");
            SQLHelper.ExecuteCommand(sql2);

            sql2 = SQLHelper.AddCity("Las Vegas", "France", "City of lights");
            SQLHelper.ExecuteCommand(sql2);
            sql2 = SQLHelper.AddCity("Los Angeles", "France", "City of lights");
            SQLHelper.ExecuteCommand(sql2);
        }
Esempio n. 4
0
        public void InsertUsers()
        {
            string sql = SQLHelper.GetSqlCommand("gocii", "pavee", "admin", "pass", "saltt", "hashhh", "admin");

            SQLHelper.ExecuteCommand(sql);

            string sql1 = SQLHelper.GetSqlCommand("gocii", "pavee", "user1", "pass", "saltt", "hashhh", "regular");

            SQLHelper.ExecuteCommand(sql1);

            string sql2 = SQLHelper.GetSqlCommand("gocii", "pavee", "user2", "pass", "saltt", "hashhh", "regular");

            SQLHelper.ExecuteCommand(sql2);

            string sql3 = SQLHelper.GetSqlCommand("gocii", "pavee", "user3", "pass", "saltt", "hashhh", "regular");

            SQLHelper.ExecuteCommand(sql3);

            string sql4 = SQLHelper.GetSqlCommand("gocii", "pavee", "goci", "pass", "saltt", "hashhh", "admin");

            SQLHelper.ExecuteCommand(sql4);
        }
Esempio n. 5
0
        public void InsertRoutes(string airportID, string airname, string aircity, string aircountry, string airIATA, string airICAO, string airlatitude, string airlongitude, string airaltitude, string airtimezone)       //potrebna izmena naziva
        {
            string sql = SQLHelper.InsertRout(airportID, Guid.NewGuid().ToString(), aircity, aircountry, airIATA, airICAO, airlatitude, airlongitude, airaltitude, airtimezone);

            SQLHelper.ExecuteCommand(sql);
        }
Esempio n. 6
0
        public void InsertUsers(string first, string last, string username, string pass, string salt)
        {
            string sql = SQLHelper.GetSqlCommand(first, last, username, pass, "saltt", "hashhh", "regular");

            SQLHelper.ExecuteCommand(sql);
        }
Esempio n. 7
0
        public void InserCity(string cityname, string countryname, string descript)
        {
            string sql = SQLHelper.AddCity(cityname, countryname, descript);

            SQLHelper.ExecuteCommand(sql);
        }
Esempio n. 8
0
        public void Delete(string id, string user)
        {
            string sql = Comment.DeleteComm(id, user);

            SQLHelper.ExecuteCommand(sql);
        }
Esempio n. 9
0
        public void Update(string id, string comment, DateTime a)
        {
            string sql = Comment.UpdateComm(id, comment, a);

            SQLHelper.ExecuteCommand(sql);
        }
Esempio n. 10
0
        public void InsertComment(string id, string city, string coment, string user)
        {
            string sql = SQLHelper.AddComment(id, city, coment, user, DateTime.Now, DateTime.Now);

            SQLHelper.ExecuteCommand(sql);
        }
Esempio n. 11
0
        public void InsertComment()
        {
            string sql = SQLHelper.AddComment(Guid.NewGuid().ToString(), "West Sale Airport", "Prvi komentar", "user1", DateTime.Now, DateTime.Now);

            SQLHelper.ExecuteCommand(sql);
        }
Esempio n. 12
0
        public void InsertAirs(string airportID, string airname, string aircity, string aircountry, string airIATA, string airICAO, string airlatitude, string airlongitude, string airaltitude, string airtimezone, string airdst, string airdbtimezone, string airtype, string airsource)       //potrebna dorada
        {
            string sql = SQLHelper.InsertAirs(airportID, airname, aircity, aircountry, airIATA, airICAO, airlatitude, airlongitude, airaltitude, airtimezone, airdst, airdbtimezone, airtype, airsource);

            SQLHelper.ExecuteCommand(sql);
        }