代码:doublecafeSales=db.InvoiceLines.Where(x=>x.UserId==user.UserId&&x.DateCharged>=dateStart&&x.DateChargedx.Quantity*x.Price);错误:转换为值类型“Double”失败,因为具体化值为null。结果类型的通用参数或查询必须使用可空类型。我已经看到的:Thecasttovaluetype'Int32'failedbecausethematerializedvalueisnullThecasttovaluetype'Decimal'failedbecausethemat