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

View File

@@ -137,11 +137,18 @@ namespace SqlSugar
{ {
foreach (var tableInfo in this.TableInfoList) foreach (var tableInfo in this.TableInfoList)
{ {
string classText = null; try
string className = tableInfo.Name; {
classText = GetClassString(tableInfo, ref className); string classText = null;
result.Remove(className); string className = tableInfo.Name;
result.Add(className, classText); classText = GetClassString(tableInfo, ref className);
result.Remove(className);
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;