linq icon indicating copy to clipboard operation
linq copied to clipboard

linq to sql for javascript.

Open zy-zero opened this issue 4 years ago • 5 comments

About the linq .js. Do you have some plans to develop linq to sql for javascript like C# linq to sql?

zy-zero avatar Sep 26 '19 04:09 zy-zero

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.

mihaifm avatar Sep 26 '19 07:09 mihaifm

IMO even if someone wants to add this functionality, it should not be part of this project. It's kind of completely unrelated.

M0ns1gn0r avatar Sep 26 '19 07:09 M0ns1gn0r

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.

juancri avatar Jan 18 '21 08:01 juancri

Yes, that is difficult to implement.

zy-zero avatar Jan 18 '21 09:01 zy-zero

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.

markusjohnsson avatar Dec 01 '23 11:12 markusjohnsson