3 ms·
It's part of the compiler - ast. Linq has two forms - one in the linq ordinary syntax from x select x.name And other is just lambda with anonymous types and
by tehlike 1y ago
It's part of the compiler - ast. Linq has two forms - one in the linq ordinary syntax
from x
select x.name
And other is just lambda with anonymous types and so on.
For the lambda syntax, you can just do this:
https://www.npmjs.com/package/linq https://www.npmjs.com/package/linq
Of course, if you want to run this against a query provider, you do need compiler support to instead give you an expression tree, and provider to process it and convert them to a language (often sql) that database can understand.
There seems to be some transpilers, or things like that - but i don't know what the state of the art is on this:
https://github.com/sinclairzx81/linqbox https://github.com/sinclairzx81/linqbox