我正在使用带有 gridview 的 objectdatasource 从我的 orm 类中获取数据,但我无法正确排序。我正在使用下面的代码,但它不像我在下面指定的那样按降序排列。我错过了什么?使用亚音速 2.1
<DataObjectMethod(DataObjectMethodType.Select, True)> Public Function FetchByPatID(ByVal PatientID As Object) As VisitCollection
Dim coll As VisitCollection = New VisitCollection().Where("PatientID", PatientID).Load()
**OrderBy.Desc(Visit.DosColumn)**
Return coll
End Function