linq
linq copied to clipboard
linq to sql for javascript.
About the linq .js. Do you have some plans to develop linq to sql for javascript like C# linq to sql?
Hi
Thanks for the suggestion. Unfortunatelly the changes required for this are not trivial, so there's no plans from my side.
However I'm open to pull requests, even if they add only a subset of the functionality.
IMO even if someone wants to add this functionality, it should not be part of this project. It's kind of completely unrelated.
One problem with this implementation is that LINQ to objects and LINQ to SQL, even when they use the same syntax, are implemented in a different way.
While LINQ to objects is being transformed to a chain of Enumerable metrods, LINQ to SQL compiles as an expression that can be verified at compile time and translated to SQL at runtime.
Yes, that is difficult to implement.
Hey. Old issue.. but I did some work on this even longer ago. In 2016. You can find it here: https://github.com/markusjohnsson/miniscule
I have no intentions of maintaining it and I don't remember a lot of it. And I take no responsibility for any SQL injection stuff. But check it out if you are interested.