Exemplo n.º 1
0
        static void Main(string[] args)
        {
            QMySql.Connect("192.168.0.105", "plants", "dev", "willys");
            QMySql.Exec("delete from plantImages;delete from plantShadePreference;delete from plantSoilPreference;delete from plantHabitat;delete from plants");

            Parse g = new Parse();

            g.GetUrls();
            // Console.ReadLine();

            foreach (string u in g.urls.Keys)
            {
                g.ParsePlant(u);
                g.SavePlant();
                Console.WriteLine("");
                // Console.ReadLine();
            }

            foreach (string s in g.soils)
            {
                Console.WriteLine(s);
            }
            Console.ReadLine();
        }
Exemplo n.º 2
0
        public static void Main(string[] args)
        {
            QMySql.Connect("192.168.0.105", "plants", "dev", "willys");

            BuildWebHost(args).Run();
        }