InterviewSolution
Saved Bookmarks
| 1. |
What is the best way to handle SQL injection attacks in Entity Framework? |
|
Answer» The injection-proof NATURE of Entity Framework lies in the FACT that it generates PARAMETERIZED SQL commands that help prevent our database from SQL injections. By inserting some malicious INPUTS into queries and parameter names, one can generate a SQL injection attack in Entity SQL syntax. It is best to never COMBINE user inputs with Entity SQL commands text to prevent or avoid this problem. |
|