1
resposta

Estou tendo este problema ao executar o método saveChanges.

Executei os dois comandos : Add-Migration criaUsuario/update-database Porém tenho este erro:

"An unhandled exception of type 'Microsoft.Data.Entity.DbUpdateException' occurred in EntityFramework.Core.dll An unhandled exception of type 'Microsoft.Data.Entity.DbUpdateException' occurred in EntityFramework.Core.dll

Additional information: An error occurred while updating the entries. See the inner exception for details. Additional information: An error occurred while updating the entries. See the inner exception for details."

o Inner Exception: "{"Invalid object name 'Usuario'."}"

1 resposta

Você mapeou a classe Usuario no DbSet do seu DbContext?