I wanna extract the Func<> from the following Expression :
Expression<Func<IQueryable<Entity>, IOrderedQueryable<Entity>>> order = q => q.OrderByDescending(c=>c.FullName);
Func<IQueryable<Entity>, IOrderedQueryable<Entity>> orderFunc = ?
How can I do it?
Edit :
And how can we convert Func<IQueryable<Entity>, IOrderedQueryable<Entity>>
to Expression<Func<IQueryable<Entity>, IOrderedQueryable<Entity>>>
?
orderFunc = order.Compile()
. – Antithesis