This project has moved and is read-only. For the latest updates, please go here.

Dynamic Query

May 6, 2015 at 3:55 PM
Edited May 6, 2015 at 3:58 PM
May I know if it will be possible to create dynamic where clauses using JSLINQ? Can anyone please suggest an approach?

var exampleArray = JSLINQ(myList)
                       .Where(function (item) { return item.FirstName=="Jo" })
                       .OrderBy(function (item) { return item.FirstName; })
                       .Select(function (item) { return item.FirstName; });
what if I would like to have conditions added to it dynamically (something similar to dynamic query in SQL).