我使用 KendoUI Grid,我有这样的代码:
IQueryable<ListStatus> liststatus = (from karfarmalist in db.PTStbLists
join eventlist in db.PTStbListEvents on karfarmalist.Id equals eventlist.SerialList
join combobase in db.GlbTbComboBases on eventlist.EventType equals combobase.GUID
where karfarmalist.TFN.Equals(tfn) && karfarmalist.GuidList == listid
select new ListStatus{
id = eventlist.Id,
eventdate = Farab.Utility.PersianDate.Georgian_jalali(eventlist.EventDate),
status = combobase.FAName
}).OrderBy(l => l.id);
Farab 调用 引发错误。我使用 AsEnumerable 方法,但 orderby 有错误。如何在 LINQ 中调用该方法而不会出错?