Here's what I'm looking for-- a way in .NET to pass in 1) an everyday .NET object/POCO 2) a string-based query to run against said object (in whatever query language) that returns the result of the query applied to the object.
I've already tried the following with no success
- Finding a way to serialize a string into a LINQ query against an object. What i can't figure out about this is why LinqPad can do it but the code they use isn't freely available.
- Using an OData library
I'm having a hard time believing that there isn't a simple (especially Linq-based) way to query objects via a string. In javascript, i could pass the object into an eval
-ed function context therefore execute a JS string against an object.
Roslyn is off the table. I need this to work in Mono.
Ideas?