Replies: 2 comments 4 replies
|
Hi @sivaji55, var orderingExpression = new GridifyQuery() {OrderBy = "NormalDateTime"}.GetOrderingExpressions<TestModel>();
var unaryExpression = (UnaryExpression) orderingExpression.First().Body;
var targetPropertyType = unaryExpression.Operand.Type;
class TestModel
{
public DateTime? NormalDateTime { get; set; }
public DateTimeOffset? DateTimeOffset { get; set; }
} |
3 replies
|
Has anyone found a workaround to obtain the sort direction? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
How to retrieve the sort type from expressions returned by GetOrderingExpressions()?, I am trying use which takes the gridify query and parses the order by expression and will create new order by string to consumer another api which supports gridify,
Note: field names are different in other api that supports gridify.
All reactions