I have an asp.net application. In which i have this code:
using (Data.connexion)
{
string queryString = @\"select id_user , nom, prenom, mail, login
Always use command parameters to avoid sql injection. Sql injections are handled by Command Parameter automatically. You don't need to worry about sql injection if you use command parameters.
When you don't use command parameters, the parameters' values are simply inserted in sql query without handling sql injection. But when you use command parameters, ADO.Net handles sql injection for you.