Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GroupBy 类型转换错误 #186

Closed
xime2009 opened this issue Jan 17, 2020 · 2 comments
Closed

GroupBy 类型转换错误 #186

xime2009 opened this issue Jan 17, 2020 · 2 comments

Comments

@xime2009
Copy link

image

@2881099
Copy link
Collaborator

2881099 commented Jan 19, 2020

刚到家测试,问题确实存在。

.ToList(a => new { sum = a.Sum(a.Value.Item1.Id) })

可以先这样处理

@2881099
Copy link
Collaborator

2881099 commented Jan 19, 2020

.ToList(a => (decimal)a.Sum(a.Value.TypeGuid))

这样也是 ok 的

2881099 pushed a commit that referenced this issue Jan 19, 2020
- 修复 .ToList(a => new DTO(a.id)) 报 未将对象引用设置到对象的实例 问题; #187
- 修复 update语句,二元运算解析出错; #184
2881099 pushed a commit that referenced this issue Jan 19, 2020
@2881099 2881099 closed this as completed May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants