Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Instruction in the section "Generate the Entity Framework migration for our Identity schema" are not complete #128

Open
holecekp opened this issue Apr 23, 2021 · 0 comments

Comments

@holecekp
Copy link

I have run into problems when I was trying to add migration for Identity framework in the 4th part of this workshop (https://github.com/dotnet-presentations/aspnetcore-app-workshop/blob/master/docs/4.%20Add%20auth%20features.md).

When I run command Add-Migration CreateIdentitySchema, the created migration file is wrong. The metods Down() and Up() are empty in it. After spending some time by Googling, I have found out that the instructions in this workshop are missing an important detail - it is necessary to select "FrontEnd" in the Default project drop-down in the Package Manager Console. Without it, BackEnd project is selected and the migration file is empty. I recommend adding this at the end of the first step.

I also recommend adding step 3 that after generating the migration and updating the database, it is necessary to go to the solutions properties and select both FrontEnd and BackEnd as startup projects again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant