Exemple #1
0
 public List<string> Process()
 {
     List<string> listScript = new List<string>();
     if (nameDBMS == DBMS.MSSQLServer2000)
     {
         ScriptSQL sql = new ScriptSQL(mdp, dbName);
         listScript = sql.Process();
     }
     if (nameDBMS == DBMS.Oracle)
     {
         ScriptOracle oracle = new ScriptOracle(mdp, dbName);
         listScript = oracle.Process();
     }
     if (nameDBMS == DBMS.Access)
     {
         ScriptMSAccess access = new ScriptMSAccess(mdp, dbName);
         listScript = access.Process();
     }
     if (nameDBMS == DBMS.MySql)
     {
         ScriptMySql sql = new ScriptMySql(mdp, dbName);
         listScript = sql.Process();
     }
     return listScript;
 }
        public List <string> Process()
        {
            List <string> listScript = new List <string>();

            if (nameDBMS == DBMS.MSSQLServer2000)
            {
                ScriptSQL sql = new ScriptSQL(mdp, dbName);
                listScript = sql.Process();
            }
            if (nameDBMS == DBMS.Oracle)
            {
                ScriptOracle oracle = new ScriptOracle(mdp, dbName);
                listScript = oracle.Process();
            }
            if (nameDBMS == DBMS.Access)
            {
                ScriptMSAccess access = new ScriptMSAccess(mdp, dbName);
                listScript = access.Process();
            }
            if (nameDBMS == DBMS.MySql)
            {
                ScriptMySql sql = new ScriptMySql(mdp, dbName);
                listScript = sql.Process();
            }
            return(listScript);
        }