Optimizing Error Tips

This commit is contained in:
skx
2021-01-06 11:15:06 +08:00
parent f7d2be4732
commit b0a9c12cce

View File

@@ -72,9 +72,17 @@ namespace SqlSugar
if (entityTypes.HasValue()) if (entityTypes.HasValue())
{ {
foreach (var item in entityTypes) foreach (var item in entityTypes)
{
try
{ {
InitTables(item); InitTables(item);
} }
catch (Exception ex)
{
throw new Exception(item.Name +" 创建失败,请认真检查 1、属性需要get set 2、特殊类型需要加Ignore 具体错误内容: "+ex.Message);
}
}
} }
} }
public virtual void InitTables(string entitiesNamespace) public virtual void InitTables(string entitiesNamespace)