What is the differences between single() and singleordefault() methods
Answers
Answered by
0
Answer:
Explanation:
SingleOrDefault() – Same as Single(), but it can handle the null value. First() - There is at least one result, an exception is thrown if no result is returned. FirstOrDefault() - Same as First(), but not thrown any exception or return null when there is no result.
Similar questions