We're updating the issue view to help you get more done. 

Sum throws 'Value cannot be null' error on linq query.

Description

Linq query fails when trying to sum a decimal: session.Query<Payment>().Where(x => x.Customer.Id == 4).Sum(x => x.Amount);

.NET version 4, SQL server 2008

Environment

None

Status

Assignee

Unassigned

Reporter

John Duckworth

Labels