All Questions
2
questions
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 (!...
1
vote
2
answers
107
views
How to update an entity in Entity Framework?
When I update this entity I get this error:
My Class for database is different with my class in viewmodel
but I convert it.
Please help me and send me the correct code.
Thanks
My error:
...