Table of Contents

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 CorrelationId

The CorrelationId for the query.

Paging Paging

The Paging information.

Sorting Sorting

The Sorting information.

Properties

CorrelationId

The CorrelationId for the query.

public CorrelationId CorrelationId { get; init; }

Property Value

CorrelationId

Paging

The Paging information.

public Paging Paging { get; init; }

Property Value

Paging

Sorting

The Sorting information.

public Sorting Sorting { get; init; }

Property Value

Sorting

TotalItems

Gets or sets the total number of items in the query.

public int TotalItems { get; set; }

Property Value

int