Delete Query Not Executing via Dapper
I have the following delete query running via Dbeaver works fine, running it through Dapper nothing happens and I'm at a lose for why
3 Replies
Dapper execution. Count is zero and checking the db via dbeaver, can confirm nothing is deleted
var count = await conn.ExecuteAsync(sql: sql, transaction: transaction, commandType: CommandType.Text);
Ive checked connection strings, running as super user, no explicit transaction, running a simple delete where id = ''
and that works fine
I asked a SO question yesterday but haven't had anything useful back
https://stackoverflow.com/questions/77863268/dapper-result-doesnt-match-pgadmin
in the screenshot there is a rollback being executed. Is that something to take a look at?
Thats just so it doesnt the data for debugging, you can see it deletes 2600 rows. Dapper does not delete anything