KinaUna / KinaUnaAzure

https://web.kinauna.com
1 stars 0 forks source link

Consolidate Db Contexts #22

Closed KinaUna closed 3 months ago

KinaUna commented 3 months ago

WebDbContext and ProgenyDbContext where initially used in different projects, but the services used in WebDbContext have moved from the Web project to the ProgenyApi project, and the remaining DbSets in WebDbContext can be added to ProgenyDbContext and WebDbContext removed.

This should simplify Entity Framework migrations.

KinaUna commented 3 months ago

I will squash the migrations and use the updated DbContexts as an initial migration:

KinaUna commented 3 months ago

Completed DbSet updates and migrations reset. Unit tests are successful, and the application runs without any issues in the development environment. Next, I will publish the code to Azure and test if there are any issues there.

KinaUna commented 3 months ago

Completed the updates and tested the application works as before after making the changes.