Table of Contents

Interface IDataRequest<TConnection, TModel>

Namespace
Excalibur.Data
Assembly
Excalibur.Data.Abstractions.dll

Represents a contract for database requests that define the command and parameters necessary for execution.

public interface IDataRequest<in TConnection, TModel> : IDataRequest

Type Parameters

TConnection

The type of the database connection.

TModel

The 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; }

Property Value

Func<TConnection, Task<TModel>>

The function responsible for resolving the request result using the provided connection.