예제 #1
0
 public GxMySql(string id)
 {
     if (GxContext.isReorganization && !GXUtil.ExecutingRunX86())
     {
         MYSQL_FIELD_FACTORY.GetInstance();                //Force libmysql load
     }
 }
예제 #2
0
        public GxMySql(string id)
        {
#if NETCORE
            if (assembly == null)
            {
                using (var dynamicContext = new AssemblyResolver(Path.Combine(FileUtil.GetStartupDirectory(), "MySql.Data.dll")))
                {
                    assembly = dynamicContext.Assembly;
                }
                using (var dynamicContext = new AssemblyResolver(Path.Combine(FileUtil.GetStartupDirectory(), "System.Configuration.ConfigurationManager.dll"))) { }
            }
#else
            if (GxContext.isReorganization && !GXUtil.ExecutingRunX86())
            {
                MYSQL_FIELD_FACTORY.GetInstance();                //Force libmysql load
            }
#endif
        }