Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant