ISqlModelMapper.ScalarByKeyAsync Method
.NET Standard 2.x
Asynchronously retrieves data from the first column, in the first row, for the specified SQL expression according to the primary key in a TModel class.
Namespace: SnapObjects.Data
Assembly: SnapObjects.Data.dll
Overloads
| Method | Description |
|---|---|
| ScalarByKeyAsync<TModel, TValue>(string expression, params object[] parameters) | Asynchronously retrieves data from the first column, in the first row, for the specified SQL expression according to the primary key in a TModel class. |
| ScalarByKeyAsync<TModel, TValue>(string expression, object[] parameters, CancellationToken cancellationToken) | Asynchronously retrieves data from the first column, in the first row, for the specified SQL expression according to the primary key in a TModel class. |