Hi,
can anyone tell me, is sql injection is possible in linq
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Lakshmanan Sethu SankaranarayanPosted Jun 11, 2014, 6:27 AM
yes its avoided in Linq to SQL.
please refer the interesting articles
http://www.devx.com/dotnet/Article/34653
http://forums.asp.net/t/1884940.aspx?linq+prevent+sql+injection
Bhabani PrasadPosted Jun 11, 2014, 4:55 AM
Princy GuptaPosted May 9, 2014, 2:40 PM
SQL injection is taken care of in linq queries.
LINQ to SQL passes all data to the database via SQL parameters. So, although the SQL query is composed dynamically, the values are substitued server side through parameters safeguarding against the most common cause of SQL injection attacks.
Found an interesting article @http://www.dotnetspark.com/kb/2040-eliminate-sql-injection-attacks-with-linq.aspx