public GxMySql(string id) { if (GxContext.isReorganization && !GXUtil.ExecutingRunX86()) { MYSQL_FIELD_FACTORY.GetInstance(); //Force libmysql load } }
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 }