Interface IQueryRunner
public interface IQueryRunner : IDisposable, IAsyncDisposable
- Inherited Members
- Extension Methods
Properties
DataContext
IDataContext DataContext { get; }
Property Value
Expression
Expression Expression { get; }
Property Value
MapperExpression
Expression? MapperExpression { get; set; }
Property Value
Parameters
object?[]? Parameters { get; }
Property Value
- object[]
Preambles
object?[]? Preambles { get; }
Property Value
- object[]
QueryNumber
int QueryNumber { get; set; }
Property Value
RowsCount
int RowsCount { get; set; }
Property Value
Methods
ExecuteNonQuery()
Executes query and returns number of affected records.
int ExecuteNonQuery()
Returns
- int
Number of affected records.
ExecuteNonQueryAsync(CancellationToken)
Executes query asynchronously and returns number of affected records.
Task<int> ExecuteNonQueryAsync(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenAsynchronous operation cancellation token.
Returns
ExecuteReader()
Executes query and returns data reader.
DataReaderWrapper ExecuteReader()
Returns
- DataReaderWrapper
Data reader with query results.
ExecuteReaderAsync(CancellationToken)
Executes query asynchronously and returns data reader.
Task<IDataReaderAsync> ExecuteReaderAsync(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenAsynchronous operation cancellation token.
Returns
- Task<IDataReaderAsync>
Data reader with query results.
ExecuteScalar()
Executes query and returns scalar value.
object? ExecuteScalar()
Returns
- object
Scalar value.
ExecuteScalarAsync(CancellationToken)
Executes query asynchronously and returns scalar value.
Task<object?> ExecuteScalarAsync(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenAsynchronous operation cancellation token.
Returns
GetSqlText()
Returns SQL text for query.
string GetSqlText()
Returns
- string
Query SQL text.