What is the best way to avoid SQL injection on MSSQL Server from C# code using Linq?
Should you use a function to strip of security issues or is it handled by the framework?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Errr, you cant SQL inject using LINQ. Behind the scenes LINQ to SQL converts values into a parameterized query.
So yes it is handled by the framework.