mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-22 02:51:58 +08:00
Update MySql error message
This commit is contained in:
@@ -275,6 +275,25 @@ namespace SqlSugar
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
public override bool IsAnyTable(string tableName, bool isCache = true)
|
||||
{
|
||||
try
|
||||
{
|
||||
return base.IsAnyTable(tableName, isCache);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (SugarCompatible.IsFramework && ex.Message == "Invalid attempt to Read when reader is closed.")
|
||||
{
|
||||
Check.ExceptionEasy($"To upgrade the MySql.Data. Error:{ex.Message}", $" 请先升级MySql.Data 。 详细错误:{ex.Message}");
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
public override bool IsAnyColumnRemark(string columnName, string tableName)
|
||||
{
|
||||
var isAny=this.Context.DbMaintenance.GetColumnInfosByTableName(tableName, false)
|
||||
|
||||
Reference in New Issue
Block a user