If the ExecuteNonQuery method returns 0, then one of the reasons may be quite obvious that your query, where the sentence does not match any row in the table.
I got this stream from the internet, it could help
Another case that happened to me was that when I used the Enterprise library Data Application data block to execute the Update SQL query using the ExecuteNonQuery method, I passed the input parameters using the AddInParameter method of the Database object so that it did not match the order of the parameters in my sql update, especially the input parameter in where where.So, as soon as I passed the where where parameter using AddInParameter at the end of the AddInParameter heap, the problem was resolved immediately.
Midhun mundayadan
source share