Uploaded image for project: 'NHibernate'
  1. NHibernate
  2. NH-3113

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.2.0.GA
    • Fix Version/s: None
    • Component/s: Linq Provider
    • Labels:

      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

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bootweasel John Duckworth
              • Votes:
                5 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Who's Looking?