Error!
Success!

LINQ: Sequence contains no elements

0
kicks

LINQ: Sequence contains no elements  (Unpublished)

LINQ to Entities doesn't support the Single() method. .First() needs to be used instead. By calling .First() an exception is generated if the sequence is empty. This blog post explains how you can still use the Single method on Entities!


Kicked By:
Drop Kicked By: