Interface IDataRequest<TConnection, TModel>
Represents a contract for database requests that define the command and parameters necessary for execution.
public interface IDataRequest<in TConnection, TModel> : IDataRequest
Type Parameters
TConnectionThe type of the database connection.
TModelThe type of the model to be returned by the request.
- Inherited Members
- Extension Methods
Properties
Command
Gets the command definition used for executing the request.
CommandDefinition Command { get; }
Property Value
- CommandDefinition
The command definition used for executing the request.
Parameters
Gets the parameters associated with the request.
DynamicParameters Parameters { get; }
Property Value
- DynamicParameters
The parameters associated with the request.
ResolveAsync
Gets the function responsible for resolving the request result using the provided connection.
Func<in TConnection, Task<TModel>> ResolveAsync { get; }