Class PagedResult<TEntity>
Represents a paginated result set containing a collection of items and the total count of items.
public class PagedResult<TEntity>
Type Parameters
TEntityThe type of the items in the result set.
- Inheritance
-
PagedResult<TEntity>
- Inherited Members
Remarks
This class is commonly used to return paginated data from APIs or database queries. It provides both the items for the current page and the total number of items across all pages.
Properties
Items
Items
public required IEnumerable<TEntity> Items { get; set; }
Property Value
- IEnumerable<TEntity>
Total
Total
public required long Total { get; set; }