mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-26 18:59:17 +08:00
Update MySqlBackUp
This commit is contained in:
@@ -16,6 +16,7 @@ namespace SqlSugar
|
|||||||
public const string CodeFirst_BigString = "varcharmax,longtext,text,clob";
|
public const string CodeFirst_BigString = "varcharmax,longtext,text,clob";
|
||||||
public static string CodeFirst_MySqlCollate{get;set;}
|
public static string CodeFirst_MySqlCollate{get;set;}
|
||||||
public static string CodeFirst_MySqlTableEngine { get; set; }
|
public static string CodeFirst_MySqlTableEngine { get; set; }
|
||||||
|
public static Type Backup_MySqlBackupType { get; set; }
|
||||||
|
|
||||||
public static Func<long> CustomSnowFlakeFunc;
|
public static Func<long> CustomSnowFlakeFunc;
|
||||||
public static Func<long> CustomSnowFlakeTimeErrorFunc;
|
public static Func<long> CustomSnowFlakeTimeErrorFunc;
|
||||||
|
|||||||
@@ -713,9 +713,16 @@ WHERE EVENT_OBJECT_TABLE = '" + tableName + "'");
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Assembly currentAssembly = Assembly.GetExecutingAssembly();
|
if (StaticConfig.Backup_MySqlBackupType != null)
|
||||||
string exePath = currentAssembly.Location.Replace("SqlSugar.dll", "MySqlBackupNet.MySqlConnector.dll");
|
{
|
||||||
assembly = Assembly.LoadFrom(exePath);
|
assembly = StaticConfig.Backup_MySqlBackupType.Assembly;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Assembly currentAssembly = Assembly.GetExecutingAssembly();
|
||||||
|
string exePath = currentAssembly.Location.Replace("SqlSugar.dll", "MySqlBackupNet.MySqlConnector.dll");
|
||||||
|
assembly = Assembly.LoadFrom(exePath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user