Is there a JS library that supports writing linq to sql queries with nodejs?

Problem

I see jslinq, and see tds js libraries for using node and SQL together… So has anyone ever used those technologies together?

I want to be able to write linq to sql queries in a nodejs app…

Problem courtesy of: Daniel D

Solution

This is not possible, at least if you want to create ad-hoc queries in Javascript. Linq (of any flavor) is a compiler technology. A query using Linq syntax or Linq expressions is handled by the C# or VB compiler, not directly interpreted by the database.

A conventional way to do this would be through a web service in C#, using Linq to fetch and store data, and presenting a clean API to clients. Then the client could consume the service through AJAX calls.

Solution courtesy of: Carl Raymond

View additional discussion.