Best way to avoid SQL injection on an MSSQL server from C # code using Linq?

What is the best way to avoid SQL injection on an MSSQL server from C # code using Linq?

Should you use a function to separate security issues or is it handled by the framework?

+3
source share
1 answer

Errr, you cannot use SQL using LINQ. Behind the scenes, LINQ to SQL converts values ​​to a parameterized query.

So yes, it is processed by the framework.

+7
source

Source: https://habr.com/ru/post/1698915/


All Articles