Before I was using Windows command line to add migrations and it was working properly.
dotnet ef migrations add MigrationName -o Data\Migrations
I tried using Package Manager Console like:
add-migration "MigrationName"
This adds the migration successfully but to the project main folder not to the Data folder.
How can I tell it to add the migration to the Data folder?
You need to specify path in outputDir option
add-migration InitialIdentityModel-v1 -OutputDir ".\Data\Migrations\"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With