Method Get
Get(string, object?[]?)
Executes a read-only query and returns the first row. Throws if there are no rows.
Task<IQueryRow> Get(string sql, object?[]? parameters = null)
Parameters
Returns
Get<T>(string, object?[]?, SqlMapper<T>)
Executes a read-only query and returns the first row mapped using mapper.
Throws if there are no rows.
Task<T> Get<T>(string sql, object?[]? parameters, SqlMapper<T> mapper)
Parameters
Returns
- Task<T>
Type Parameters
T
Get<T>(string, object?[]?)
Executes a read-only query and returns the first row mapped using T.FromRow.
Throws if there are no rows.
Task<T> Get<T>(string sql, object?[]? parameters = null) where T : IFromRow<T>
Parameters
Returns
- Task<T>
Type Parameters
T