Skip to content

GetByPkAsync Method ​

Definition ​

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

Overloads ​

NameDescription
Task<T> GetByPkAsync(object id, CancellationToken cancellationToken = null)Fetches a row by primary key value, or null if none match.
Task<DynamicRow> GetByPkAsync(TableInfo table, object id, CancellationToken cancellationToken = null)Fetches a row by primary key value, or null if none match.
Task<object> GetByPkAsync(Type entityType, object id, CancellationToken cancellationToken = null)Fetches a row by primary key value, or null if none match.

Task<DynamicRow> GetByPkAsync(TableInfo table, object id, CancellationToken cancellationToken = null) ​

csharp
Task<DynamicRow> GetByPkAsync(TableInfo table, object id, CancellationToken cancellationToken = null)

Fetches a row by primary key value, or null if none match.

Task<object> GetByPkAsync(Type entityType, object id, CancellationToken cancellationToken = null) ​

csharp
Task<object> GetByPkAsync(Type entityType, object id, CancellationToken cancellationToken = null)

Fetches a row by primary key value, or null if none match.

Task<T> GetByPkAsync(object id, CancellationToken cancellationToken = null) ​

csharp
Task<T> GetByPkAsync(object id, CancellationToken cancellationToken = null)

Fetches a row by primary key value, or null if none match.