C#C
C#10mo ago
Faker

Is it possible to change Migrations folder path when updating database using UI tools for EF Core

Hello guys, when using the UI tools for migration in rider, normally, we look into the Migrations folder where our project is. For instance, if our .csproj is in Learning, we would look for Migrations sub-folder in Learning. My question is, can we change that to look inside Library/Migrations instead?

The idea is, I wanted several folders to hold different dbContext Migrations. Like say one for School, one for Library etc.

I was able to specify where my migrations go when I add to it, like Library/Migrations. BUT when I update database, it seems it still look into Migration folder in Learning and so it doesn't recognise/find any migration related to the one I want to process.
Was this page helpful?