Skip to content

Commit 66ae458

Browse files
committed
Add Pagination Request Options
1 parent 025223d commit 66ae458

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace KSFramework.Pagination;
2+
3+
public class OrderingRequestOptions
4+
: PaginationRequestOptions
5+
{
6+
public string OrderByPropertyName { get; set; } = "Id";
7+
public bool Desc { get; set; } = false;
8+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace KSFramework.Pagination;
2+
3+
public class PaginationRequestOptions
4+
{
5+
public int PageIndex { get; set; } = 1;
6+
public int PageSize { get; set; } = 20;
7+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
namespace KSFramework.Pagination;
3+
4+
public class SearchRequestOptions
5+
: OrderingRequestOptions
6+
{
7+
public string SearchTerm { get; set; } = string.Empty;
8+
}

0 commit comments

Comments
 (0)