延时加载友好错误提示

This commit is contained in:
28810
2019-01-19 19:18:04 +08:00
parent a7896007a9
commit ef87618092
2 changed files with 6 additions and 1 deletions

View File

@ -107,7 +107,7 @@ namespace FreeSql.Internal {
if (common.CodeFirst.IsLazyLoading && virtualProps.Any()) {
//virtual 属性延时加载,生态产生新的重写类
if (trytb.Type.IsNotPublic) throw new Exception("【延时加载】功能发生错误,实体类必须声明为 public");
if (trytb.Type.IsNestedPublic == false) throw new Exception("【延时加载】功能发生错误,实体类必须声明为 public");
var overrieds = 0;
var cscode = new StringBuilder();