Anyone know why Dapper returns an int from .Execute(...)
?
I can't find this documented anywhere.
The integer represents the number of rows that were affected by your query.
It returns an integer so you know if your query has worked. If zero is returned and you expected something to have changed then you know there is a problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With