原文:The cast to value type 'System.Decimal' failed because the materialized value is null. Either the result type's generic parameter or the query must use a nullable type.

investmentRepository.Table.Where t gt t.CustomerId customerId amp amp t.InvestmentStatus tempStatus .Sum t gt t.Amount 查询结果存在NULL值,在尝试将它转换成System.Int 时出了错,解决方法如下 investmentRepository.Table.Where t gt ...

2016-10-18 13:09 0 1474 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM