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