aspnetcore-app-workshop icon indicating copy to clipboard operation
aspnetcore-app-workshop copied to clipboard

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

Open holecekp opened this issue 4 years ago • 0 comments

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.

holecekp avatar Apr 23 '21 19:04 holecekp