Class EntityContinuationResult<TReadModel>
- Namespace
- Arbiter.CommandQuery.Queries
- Assembly
- Arbiter.CommandQuery.dll
Represents the result of an entity query that supports continuation for paging scenarios.
public class EntityContinuationResult<TReadModel>
Type Parameters
TReadModel
The type of the read model returned in the query results.
- Inheritance
-
EntityContinuationResult<TReadModel>
- Inherited Members
Remarks
This class is typically used to return a page of data along with a continuation token that can be used to retrieve the next page in paginated queries, such as those in Blazor WebAssembly applications.
Properties
ContinuationToken
Gets or sets the continuation token for retrieving the next page of results.
[JsonPropertyName("continuationToken")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ContinuationToken { get; set; }
Property Value
- string
A string token that can be used in subsequent queries to fetch the next set of results, or null if there are no more results.
Data
Gets or sets the current page of data returned by the query.
[JsonPropertyName("data")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyCollection<TReadModel>? Data { get; set; }
Property Value
- IReadOnlyCollection<TReadModel>
A read-only collection of
TReadModel
representing the data for the current page, or null if no data is available.