mcintyre321
mcintyre321

Reputation: 13306

Transforming SQL into Linq To Objects expressions at runtime

Does anyone know of any libraries that one can use to parse a SQL query and build up a linq expression which can then be compiled and used against linq to objects?

This approach only needs to work for simple queries, for complex ones I can write a hardcoded custom query

UPDATE: I've found something called NQuery which should do the trick for me http://nquery.codeplex.com/ so don't waste your time answering!

Upvotes: 4

Views: 958

Answers (1)

mcintyre321
mcintyre321

Reputation: 13306

There is a project call [SqlLinq] (https://github.com/dkackman/SqlLinq) which converts SQL into c# Expression Trees, and evaluates them.

Upvotes: 5

Related Questions