IQueryable
AsQueryable()
col1, col2 col3 & col4
List<employee> obj = new List<employee> query = obj.AsQueryable<employee>() var paramterExpression = Expression.Parameter(typeof(Employee)); Expression<func><employee> orderByExpression = (Expression<func><employee>)Expression.Lambda(Expression.PropertyOrField(paramterExpression, "EmpName"), paramterExpression); query.OrderBy(orderByExpression).
query.OrderBy(col1).ThenBy(col2).ThenBy(col3).ThenBy(col4);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)