How does nesting an OrderBy in a Dynamic Linq query work?
问题 I'm using Dynamic Linq and today I wanted to build a slightly more complex nested query: "Composition .Where(((ExpirationDate > DateTime.UtcNow.Date) && (ExpirationDate.Year != 9999))) .OrderBy(\"ExpirationDate ASC\") .Select(ExpirationDate) .FirstOrDefault() == @0" (the breaks are only there for readability in this post, not really there in code) The query is held by a string variable and passed to this: private static Func<IQueryable<T>, object, IQueryable<T>> CreateWhereExpression<T>