Exemple #1
0
 public LoadIntoDatabase(string filepath, string host, string database, string user, string passwd, int type)
 {
     switch (type)
     {
         case 1:
             xmlparse = new MeiTuanXml(filepath);
             break;
         case 2:
             xmlparse = new LashouXml(filepath);
             break;
         case 3:
             xmlparse = new NuomiXml(filepath);
             break;
         default:
             break;
     }
     staContext = new Statistic();
     conn = new MySQLConnection(new MySQLConnectionString(host, database, user, passwd).AsString);
     conn.Open();
 }
Exemple #2
0
 public LoadIntoDatabase(string filepath, int type)
 {
     switch (type)
     {
         case 1:
             xmlparse = new MeiTuanXml(filepath);
             break;
         case 2:
             xmlparse = new LashouXml(filepath);
             break;
         case 3:
             xmlparse = new NuomiXml(filepath);
             break;
         default:
             break;
     }
     staContext = new Statistic();
     conn = new MySQLConnection(new MySQLConnectionString("localhost", "gyzdatabase", "root", "9917622q").AsString);
     conn.Open();
 }