Computer Science, asked by kulpreet9620, 1 year ago

What is the differences between single() and singleordefault() methods

Answers

Answered by Adwaith300
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