- 修复 属性无set自动忽略的bug;

- 优化 ISelect`1.Include之后ToList参数includeNestedMembers默认为true;
This commit is contained in:
28810
2019-09-09 15:11:25 +08:00
parent 415e09f0da
commit 915af57baa
4 changed files with 16 additions and 2 deletions

View File

@ -76,6 +76,11 @@ namespace FreeSql.Internal
var setMethod = trytb.Type.GetMethod($"set_{p.Name}");
var colattr = common.GetEntityColumnAttribute(entity, p);
var tp = common.CodeFirst.GetDbInfo(colattr?.MapType ?? p.PropertyType);
if (setMethod == null) // 属性没有 set自动忽略
{
if (colattr == null) colattr = new ColumnAttribute { IsIgnore = true };
else colattr.IsIgnore = true;
}
if (tp == null && colattr?.IsIgnore != true)
{
if (common.CodeFirst.IsLazyLoading)