.NET Framework BackupDataBase

This commit is contained in:
sunkaixuan 2025-03-03 14:36:28 +08:00
parent 001471dc57
commit f9ef41094e

View File

@ -457,8 +457,8 @@ AND sql LIKE '%"+tableName+"%'");
}
public override bool BackupDataBase(string databaseName, string fullFileName)
{
Check.ThrowNotSupportedException("MySql BackupDataBase NotSupported");
return false;
this.Context.Ado.ExecuteCommand($"VACUUM INTO '{fullFileName}'");
return true;
}
private List<T> GetListOrCache<T>(string cacheKey, string sql)
{