mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
修复 .ToList(a => new DTO(a.id)) 报 未将对象引用设置到对象的实例 问题
This commit is contained in:
parent
e8d177eb84
commit
14e0f35e2f
@ -206,7 +206,7 @@ namespace FreeSql.Internal
|
|||||||
var child = new ReadAnonymousTypeInfo
|
var child = new ReadAnonymousTypeInfo
|
||||||
{
|
{
|
||||||
Property = null,
|
Property = null,
|
||||||
CsName = newExp.Members[a].Name,
|
CsName = (newExp.Arguments[a] as MemberExpression)?.Member.Name,
|
||||||
CsType = newExp.Arguments[a].Type,
|
CsType = newExp.Arguments[a].Type,
|
||||||
MapType = newExp.Arguments[a].Type
|
MapType = newExp.Arguments[a].Type
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user