mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 18:34:55 +08:00
-
This commit is contained in:
@@ -136,6 +136,8 @@ namespace SqlSugar
|
|||||||
if (this.TableInfoList.HasValue())
|
if (this.TableInfoList.HasValue())
|
||||||
{
|
{
|
||||||
foreach (var tableInfo in this.TableInfoList)
|
foreach (var tableInfo in this.TableInfoList)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
string classText = null;
|
string classText = null;
|
||||||
string className = tableInfo.Name;
|
string className = tableInfo.Name;
|
||||||
@@ -143,6 +145,11 @@ namespace SqlSugar
|
|||||||
result.Remove(className);
|
result.Remove(className);
|
||||||
result.Add(className, classText);
|
result.Add(className, classText);
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Check.Exception(true, "Table '{0}' error,You can filter it with Db.DbFirst.Where(name=>name!=\"{0}\" ) \r\n Error message:{1}", tableInfo.Name, ex.Message);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user