mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 20:38:16 +08:00
- 修复 属性无set自动忽略的bug;
- 优化 ISelect`1.Include之后ToList参数includeNestedMembers默认为true;
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user