✅ EF Core - Not getting updated data from PostgreSQL table
I have the following method in my
DbService.cs
Which returns a unix timestamp from a postgres table. However if I manually change the data in the column to a completely different number and call the method again I still get the old value prior to my manual change, even after restarting my app. Am I doing something wrong?5 Replies
I've tried logging the output, and this is what I get
But this is the row in the database
I've tried manually disposing the context and changing to
await using (
but none of those worked eithereither you are connecting (or you edited) to the wrong db (happens for example with vpns), to the wrong schema, wrong table, or you have a mock somewhere
Aright, turns out DBeaver which I'm using for editing the table was lying to me when it said the data was updated. After invalidating and reconnecting I saw that the value had in fact not changed. Changing the value with the psql CLI worked, thanks.