예제 #1
0
 //重新实例化DBBussiness对象,为了改变读取不同的配置文件
 public static void ReInit()
 {
     DB = ReadDB(Path).ToUpper();
     if (DB == "MSSQL")
     {
         db = new SqlDBBussiness(Path);
     }
     else if (DB == "ORACLE")
     {
         db = new OracleDBBussiness(Path);
     }
     else
     {
         db = new MySqlDBBussiness(Path);
     }
 }
예제 #2
0
        static PublicBD()
        {
            DB = ReadDB().ToUpper();
            if (DB == "MSSQL")
            {
                db = new SqlDBBussiness();
            }
            else if (DB == "ORACLE")
            {
                db = new OracleDBBussiness();
            }
            else
            {
                db = new MySqlDBBussiness();
            }

            Reflection_Resave R_Resave = new Reflection_Resave();
        }