DmJoinSelect`1
Namespace: MJCZone.DapperMatic.Dml
Assembly: MJCZone.DapperMatic
Summary
Joined rows read as something else: the rows' columns, their related rows' columns and values over related rows read by the database, and the rest of the selector run in .NET.
sealed public
Contents
Methods (9)
Methods
| Method | Summary |
|---|---|
| Distinct | Returns each distinct result once, as the database compares what the selector reads. |
| ToListAsync | Reads the results. |
| FirstAsync | Reads the first result: in the query's order, or the first model's key order if it has none. |
| SingleAsync | Reads the one result the query returns. |
| ToSql | Writes the SQL that CancellationToken) runs, without running it.... |
| GetType | |
| ToString | |
| Equals | |
| GetHashCode |
Distinct
Returns each distinct result once, as the database compares what the selector reads.
DmJoinSelect<TResult> Distinct()Returns
Type: DmJoinSelect<TResult>
The query.
ToListAsync
Reads the results.
Task<List<TResult>> ToListAsync(
IDbTransaction tx,
CancellationToken cancellationToken)Parameters
- tx (IDbTransaction) - The transaction to use, or null.
- cancellationToken (CancellationToken) - The cancellation token.
Returns
Type: Task<List<TResult>>
The results.
FirstAsync
Reads the first result: in the query's order, or the first model's key order if it has none.
Task<TResult?> FirstAsync(
IDbTransaction tx,
CancellationToken cancellationToken)Parameters
- tx (IDbTransaction) - The transaction to use, or null.
- cancellationToken (CancellationToken) - The cancellation token.
Returns
Type: Task<TResult?>
The result, or the default if there is none.
SingleAsync
Reads the one result the query returns.
Task<TResult?> SingleAsync(
IDbTransaction tx,
CancellationToken cancellationToken)Parameters
- tx (IDbTransaction) - The transaction to use, or null.
- cancellationToken (CancellationToken) - The cancellation token.
Returns
Type: Task<TResult?>
The result, or the default if there is none.
ToSql
Writes the SQL that CancellationToken) runs, without running it.
DmStatement ToSql()Returns
Type: DmStatement
The SQL and its parameters.
GetType
GetType()ToString
ToString()Equals
Equals()GetHashCode
GetHashCode()