Appearance
First Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Overloads
| Name | Description |
|---|---|
Task<T> First() | Returns the first row matching the current query. |
Task<T> First(IDatabaseSession connection) | Returns the first row matching the current query. |
Task<T> First()
csharp
Task<T> First()Returns the first row matching the current query.
Returns
The first matching entity, or throws if none exist.
Task<T> First(IDatabaseSession connection)
csharp
Task<T> First(IDatabaseSession connection)Returns the first row matching the current query.
Parameters
| Name | Description |
|---|---|
connection | Open database session to execute against. |
Returns
The first matching entity, or throws if none exist.