SqlSet<TResult>.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 TResult FirstOrDefault()

Return Value

Type: TResult
A default value if the set is empty; otherwise, the first element.

See Also

Reference

SqlSet<TResult> Class
DbExtensions Namespace

© Max Toro Q.