Appearance
GetByPkAsync Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Overloads
| Name | Description |
|---|---|
Task<T> GetByPkAsync(object id, CancellationToken cancellationToken = null) | Fetches a record by primary key value, or null if no row matches. |
Task<object> GetByPkAsync(Type entityType, object id, CancellationToken cancellationToken = null) | Fetches a record by primary key value using a runtime entity type. |
Task<object> GetByPkAsync(Type entityType, object id, CancellationToken cancellationToken = null)
csharp
Task<object> GetByPkAsync(Type entityType, object id, CancellationToken cancellationToken = null)Fetches a record by primary key value using a runtime entity type.
Task<T> GetByPkAsync(object id, CancellationToken cancellationToken = null)
csharp
Task<T> GetByPkAsync(object id, CancellationToken cancellationToken = null)Fetches a record by primary key value, or null if no row matches.
Type parameters
| Name | Description |
|---|---|
T | The entity (row) type. |
Parameters
| Name | Description |
|---|---|
cancellationToken | Cancellation token. |
id | Primary key value. |