Replies: 1 comment 3 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; }
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
Beta Was this translation helpful? Give feedback.
All reactions