-
-
Notifications
You must be signed in to change notification settings - Fork 201
/
OrderInfo.cs
47 lines (39 loc) · 996 Bytes
/
OrderInfo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System.Collections.Generic;
// ReSharper disable InconsistentNaming
namespace MicroOrm.Dapper.Repositories.SqlGenerator.Filters;
/// <summary>
/// Query order info
/// </summary>
public class OrderInfo
{
/// <summary>
/// The sorting direction
/// </summary>
public SortDirection? Direction { get; set; }
/// <summary>
/// Columns to sort
/// </summary>
public List<string>? Columns { get; set; }
/// <summary>
/// You can specify a custom query if you need more "liberty"
/// </summary>
public string? CustomQuery { get; set; }
/// <summary>
/// If true, will be used for all queries
/// </summary>
public bool Permanent { get; set; }
/// <summary>
/// Possible sorting Direction
/// </summary>
public enum SortDirection
{
/// <summary>
/// Ascending
/// </summary>
ASC,
/// <summary>
/// Descending
/// </summary>
DESC
}
}