SqlSet.First Method
Returns the first element of the set.
Namespace: DbExtensions
Assembly: DbExtensions.dll
Overloads
| Name | Description |
|---|---|
| First() | Returns the first element of the set. |
| First(OperatorStringHandler) | Returns the first element in the set that satisfies a specified condition. |
| First(String) | Returns the first element in the set that satisfies a specified condition. |
Syntax
public Object First()
Return Value
Object
The first element in the set.
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | The set is empty. |