Some of Entity Framework Core CLI commands accept
environment
dotnet ef migrations list --environment <env_name>
IDbContextFactory
DbContextFactory
Stupid me, after the day of looking around, I noticed that Create
method of IDbContextFactory
interface has the parameter of type DbContextFactoryOptions
, which in turn has EnvironmentName
property, which appears to be the one passed to CLI commands.
Case closed.