SqlSet<TResult>.First Method
Returns the first element of the set.
Namespace: DbExtensions
Assembly: DbExtensions.dll
Syntax
public TResult First()
Return Value
Type: TResult
The first element in the set.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The set is empty. |