I am new to Visual Studio btw (I use VSC but assumed I needed VS for this assessment due to sln file).
I am running into difficulties with setting up an existing .NET EF Core project and database. Once I get the project connected, EntityFramework is constantly broken and I only seem to be able to make changes to the database by manually adjusting the migrations as they always try to create a new table which conflicts with the existing table.
Please tell me what I'm doing wrong.
Process I used to submit project:
- Restore DB via BAK file.
- Configure Connection string (which does pull the existing data).
- Make changes to Domain Models and ViewModels.
- Add Migration.
- Update db (fails due to existing table).
- Manually edit migration files.
- Update db (succeeds).
- Repeat 3 - 8 as needed.