请让我知道只有当特定列不null
使用 lambda 表达式时,我才能在 linq 中使用 orderby:
var list= // result returned from sql stored proc
list.orderby(s=>s.empid!=null).select(p=>p) //something like this
是否可以在列表中包含执行 orderby 的条件?
请让我知道只有当特定列不null
使用 lambda 表达式时,我才能在 linq 中使用 orderby:
var list= // result returned from sql stored proc
list.orderby(s=>s.empid!=null).select(p=>p) //something like this
是否可以在列表中包含执行 orderby 的条件?