Esempio n. 1
0
        public static void InsertIntoTowns(string connectionString, string TownName, string CountryName)
        {
            string query = "use MinionsDb\n";

            query += "insert into Towns values('" + TownName + "', '" + CountryName + "')";
            QueryHooks.ExecTSQLQuery(connectionString, query);
        }
Esempio n. 2
0
        public static void InsertIntoVillains(string connectionString, string Name, string EvilnessFactor)
        {
            string query = "use MinionsDb\n";

            query += "insert into Villains values('" + Name + "', '" + EvilnessFactor + "')";
            QueryHooks.ExecTSQLQuery(connectionString, query);
        }
Esempio n. 3
0
        public static void InsertIntoMinionsVillains(string connectionString, int MinionId, int VillainId)
        {
            string query = "use MinionsDb\n";

            query += "insert into MinionsVillains values(" + MinionId + ", " + VillainId + ")";
            QueryHooks.ExecTSQLQuery(connectionString, query);
        }
Esempio n. 4
0
        public static void InsertIntoMinions(string connectionString, int Age, string Name, int TownId)
        {
            string query = "use MinionsDb\n";

            query += "insert into Minions values(" + Age + ", '" + Name + "', " + TownId + ")";
            QueryHooks.ExecTSQLQuery(connectionString, query);
        }