3

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?

1 Answer 1

4

You need to specify path in outputDir option

add-migration InitialIdentityModel-v1 -OutputDir ".\Data\Migrations\"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.