1 post
2
3
558
Dude, this is your mistake because you can’t pass a collection of Sqlparameter in the Sqlcommand Add method. You could change and put a foreach like: if (query.Parameters.Count > 0) { foreach…