On 31.05.2012 11:14, Oskar Berggren wrote:
2012/5/31 David Schmitt<[email protected]>:
Hi,

is there a general consensus how mismatches between linq-to-objects and
linq-to-nhibernate should be handled?

As an example I present NH-3113: Sum() over an empty enumerable returns zero
while it returns null over an empty query (or throws).

I think it's interesting to compare with how linq2ef and linq2sql does it.

EF and Linq2sql do indeed fail too: they throw an InvalidOperationException with a helpful error message.


Best Regards, David

Reply via email to