Code2Gether-Discord / JokesOnYou

A learning project, A jokes website build as a team project.
12 stars 11 forks source link

created a variable called useSQLite which can be changed depending on… #172

Closed chrisK00 closed 2 years ago

chrisK00 commented 3 years ago

… if you want to run the db with docker and npgsql

I tried following https://docs.microsoft.com/en-us/ef/core/managing-schemas/migrations/providers?tabs=dotnet-core-cli the second example (Using one context type) considering the first one would force us to change our codebase. I could not get it working unfortunately. The suggested solution here did nhttpsot work: ://github.com/dotnet/efcore/issues/14399

That is why i did the simplest thing possible, a on and off switch in the code. Managing migrations will be a challenge but at least we can work on the project now without docker. If anyone has a solution on the "using one context type" from the docs you are more than welcome to modify this branch.

closes #164