更新时间:2023-02-17 18:47:16
是,LINQ将有助于阻止SQL注入。
Yes, LINQ will help stop SQL injection.
LINQ到SQL传递所有数据到
通过SQL参数数据库。所以,
虽然SQL查询组成
动态,值被取代的
通过参数服务器端
维护对最常见的
事业的SQL注入攻击。
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.
此外,请参阅消除SQL注入攻击无痛使用LINQ 获得一些信息。
Also, see Eliminate SQL Injection Attacks Painlessly with LINQ for some info.