1
我正在使用AutoQuery,这使得写入服务变得非常简单。我的其中一个查询需要按值X降序排列,然后按值Y升序。看起来,在AutoQuery中,您可以按升序或降序排序,但不排序。ServiceStack自动查询排序
为了解决这个问题,我添加自定义属性来表示我的状态是这样的:
// Custom fields to determine sort order
public bool? IsState1 { get; set; }
public bool? IsState2 { get; set; }
这并不工作,但是我想知道是否有可能本身做到这一点。
这是超级真棒。这是在文档中吗? – Telavian
@Telavian认为这是以前,[但它现在](https://github.com/ServiceStack/ServiceStack/wiki/Auto-Query#sort-specific-fields-in-reverse-order):) – mythz