Пример #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:
             break;
         default:
             break;
     }
     staContext = new Statistic();
     conn = new MySQLConnection(new MySQLConnectionString(host, database, user, passwd).AsString);
     conn.Open();
 }
Пример #2
0
 public LoadIntoDatabase(string filepath, int type)
 {
     switch (type)
     {
         case 1:
             xmlparse = new MeiTuanXml(filepath);
             break;
         case 2:
             break;
         default:
             break;
     }
     staContext = new Statistic();
     conn = new MySQLConnection(new MySQLConnectionString("localhost", "gyzdatabase", "root", "9917622q").AsString);
     conn.Open();
 }