Hi guys!
Is it expected that SingleOrDefault() method returns the first element for IQueryable object returned by IncludeOptimized WHEN collection contains more than one element? I didnt find anything about it on your site and was a little bit confused.
https://dotnetfiddle.net/qk5l1f
My expectation here is to see InvalidOperationException thrown.
Hi guys!
Is it expected that SingleOrDefault() method returns the first element for IQueryable object returned by IncludeOptimized WHEN collection contains more than one element? I didnt find anything about it on your site and was a little bit confused.
https://dotnetfiddle.net/qk5l1f
My expectation here is to see InvalidOperationException thrown.