using xModels.Base; namespace xModels.Dtos { /// /// Request a Page of Data Based on Query ... /// this can used in every Data Providers ... /// public class XQuery : XBaseDto { /// /// an string for filtering results /// /// public string Filter { get; set; } = null; /// /// determines fully load object with it's relational fields or not /// /// public bool ContainsDetail { get; set; } = false; /// /// specifiy sorting of items /// /// public string SortBy { get; set; } = nameof (XBaseIntIDEntity.Id); /// /// specify sorting direction /// /// public bool IsAscending { get; set; } = true; /// /// specify page number /// /// public int Page { get; set; } = 1; /// /// specify page size /// /// public int PageSize { get; set; } } }