SyntaxFix
Write A Post
Hire A Developer
Questions
You need to use the LINQ Dynamic Query Library in order to pass parameters at runtime,
This will allow linq statements like
string orderedBy = "Description"; var query = (from p in products orderby(orderedBy) select p);