Hello, How can I do a sum using a LINQ query when the query produces no elements?
Int32 sum = (from a in session.Query<AnalogicalValue>() select a.Value).Sum(); This fails with a NullReferenceException. The DefaultIfEmpty operator could probably solve this, but it is not yet implemented. Does any of you guys have a solution? Shall I add a JIRA issue for implementing the DefaultIfEmpty operator? Thanks! RP -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
