[Solved] An error occurred while updating the entries. See the inner exception for details.

Error message:

Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details.
 ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Invalid column name 'StatusId'.

There is an error updating the database. The field StatusId is invalid

Solution:

After checking, it is found that the data model in the program is StatusId, and the actual database field has been changed to statusvalues

You just need to determine which field to use, make synchronous modifications and use the same field.

Similar Posts: