views:

112

answers:

2

I would like to offload the work of generating an sql statement from the application to the database. Is this possible?

+1  A: 

LINQ is part of C# (and other .net languages). It has nothing to do with SQL.

DaRKoN_
+1, although it does have a *little* to do with SQL, since LINQ to SQL can translate to T-SQL ;p
Mark Seemann
@Mark Seemann: LINQ to SQL surely does (although that still won't help the OP). LINQ itself however, does not.
DaRKoN_
+3  A: 

You cannot, but if you want to translate LINQ queries you can use this tool: http://www.linqpad.net/ It can generate the SQL so if you invested a lot in LINQ, you can use this to create stored procs or queries for SQL.

Brian
wow..that is amazing. I will be using this
Luke101