This commit is contained in:
sunkaixuan
2017-11-29 10:14:24 +08:00
parent 90609f758d
commit e85d78ef73

View File

@@ -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;
} }