Does anybody know how to modify the following command's output directory?
dotnet ef migrations add Initial --context EsportshubApi.Models.ApplicationDbContext
I tried including the choice:
But it makes no difference. Exists a
Option and another with directory are both available. However, none of them serve as migration output.
My issue is that I have two DbContexts, thus I need to split the migrations for each.
dotnet ef migrations add Initial --context EsportshubApi.Models.ApplicationDbContext -o YourFolderPath
dotnet ef migrations add
Adds a new migration.
< NAME > The name of the migration.
-o --output-dir < PATH > The directory (and sub-namespace) to use. Paths are relative to the project directory. Defaults to "Migrations".