I am using Npgsql to connect my .Net application to Postgres database. It works well with select queries but when I try to run insert query with parameters, it throwing error.
For me, it turned out I was inserting duplicate Ids (Id=0).
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