Run different database types in different environments in dotnet core 2

Viewed 2100

I want to run a SQLite database in development and a SQLServer Express database in production.

We are using code first with database migrations.

How do I inject a different dbcontext in each environment?

How do I run migrations against a specific database. E.g. In development I'll want to run migrations against the SQLite database.

2 Answers
Related