Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
3.23/5 (6 votes)
Does anyone know if LINQ uses parameterized queries when working with SQL? I can find no documentation from MS about it (as of last week), and I need to figure out how to see if query plans from LINQ are getting cached on the server properly.
Posted

Hi,

LINQ uses parametrized queries with SQL. Please refer to the following links:

LINK 1[^]

LINK 2[^]

I hope this should be helpful.

 
Share this answer
 
astanton1978 wrote:
Does anyone know if LINQ uses parameterized queries when working with SQL?



They do indeed.

 
Share this answer
 


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900