I'm trying to decouple the orderby on a queryover call and this doesn't compile
protected static void AddOrder<T>(IQueryOver<T, T> criteria, Expression<Func<object>> expression )
{
criteria.OrderBy(expression).Asc;
}
I'm guessing there is a way to do this, somehow bringing in the asc into the linq expression? Thanks for the help!