Skip to main content

All Questions

Tagged with
0 votes
0 answers
66 views

How to tackle this error Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException?

Message: Database operation expected to affect 1 row(s) but actually affected 0 row(s). I am trying to update user info in the database but I get this error. public IActionResult OnPost() { if (!...
Ash's user avatar
  • 1
0 votes
2 answers
1k views

How can I be notified in ASP.NET when a certain update happens in my database?

I need to be notified of specific changes that happen in my database, e.g. when a specific value becomes null or when an integer changes to a value between a certain range. I was looking into using ...
user4646116's user avatar
1 vote
1 answer
371 views

LINQ-to-SQL does not retrieve the latest (updated) version stored in the database

When using a linqdatasource to update my sqlexpress database everything is displayed ok, but when I try retrieving the contents manually using: public static IQueryable<MarkingScheme> ...
Themos's user avatar
  • 450