Class QueryContext
- Namespace
- Cratis.Applications.Queries
- Assembly
- Cratis.Applications.dll
Defines the context for a query.
public record QueryContext : IEquatable<QueryContext>
- Inheritance
-
QueryContext
- Implements
- Inherited Members
Constructors
QueryContext(CorrelationId, Paging, Sorting)
Defines the context for a query.
public QueryContext(CorrelationId CorrelationId, Paging Paging, Sorting Sorting)
Parameters
CorrelationId
CorrelationIdThe CorrelationId for the query.
Paging
PagingThe Paging information.
Sorting
SortingThe Sorting information.
Properties
CorrelationId
The CorrelationId for the query.
public CorrelationId CorrelationId { get; init; }
Property Value
Paging
The Paging information.
public Paging Paging { get; init; }
Property Value
Sorting
The Sorting information.
public Sorting Sorting { get; init; }
Property Value
TotalItems
Gets or sets the total number of items in the query.
public int TotalItems { get; set; }