I'm using Entity Framework Core using SQL Server with migrations. I am also using the In-Memory and SQL-Lite In-Memory database connections in my integration tests.

How can I only run migrations when I am using a SQL Server connection? I can't see a way of detecting the type of data store based on an `DbContext`.