SqlSet.FirstOrDefault Method
Returns the first element of the set, or a default value if the set contains no elements.
Namespace: DbExtensions
Assembly: DbExtensions.dll
Syntax
public Object FirstOrDefault()
Return Value
Type: Object
A default value if the set is empty; otherwise, the first element.