Please let me know how can I can use orderby in linq only when a particular column is not null using lambda expression:
var list= // result returned from sql stored proc
list.orderby(s=>s.empid!=null).select(p=>p) //something like this
Is it possible to include a condition to perform orderby on the list?
1 Answer