You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
what you think about adding method in AbstractQueryValidator to set certain property as default sort property if we don't want to sort results by primary key 'Id' by default:
publicclassUser{publicintId{get;set;}[DefaultSortProperty(descending =true, order =1)]publicstringFirstName{get;set;}[DefaultSortProperty(descending =false, order =2)]publicstringLastName{get;set;}publicDateTimeDateOfBirth{get;set;}}
If we have two or more default order properties it will pick up first by lowest order number and sort result by that property.
The text was updated successfully, but these errors were encountered:
Good idea, I am working on a couple of things concerning defaults of ordering/sorting. Trying to get them out later today. I will try to include your suggestion.
Hi Benjamin,
what you think about adding method in
AbstractQueryValidator
to set certain property as default sort property if we don't want to sort results by primary key 'Id' by default:or to go with custom property attribute:
If we have two or more default order properties it will pick up first by lowest order number and sort result by that property.
The text was updated successfully, but these errors were encountered: