Skip to content

First Method ​

Definition ​

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Overloads ​

NameDescription
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 ​

NameDescription
connectionOpen database session to execute against.

Returns ​

The first matching entity, or throws if none exist.