Depending on ...
EF allows you to avoid logging in for you to be safe in most cases.
But if you create dynamic SQL inside a procedure with inputs or call another function or procedure with inputs, you are still exposed to SQL Injection attack.
To prevent SQL Injection, you need to follow the last part of the execution path and make sure the inputs are verified.
source share