ASP.NET Core 2.1 - IdentityUser Issue - Cannot create a DbSet for 'IdentityUser' this type is not included in the model for the context

后端 未结 4 1833
再見小時候
再見小時候 2021-01-17 10:34

I have upgraded my code from ASP.NET Core 2.0 to Core 2.1. I created a new Core 2.1 project and moved my code into the new project. I have provided samples of my startup and

4条回答
  •  清酒与你
    2021-01-17 11:12

    As a follow up: to avoid the next possible issue as soon as this here is fixed: You also have to change the types in the Views\Shared_LoginPartial.cshtml

    From

    @inject SignInManager SignInManager
    @inject UserManager UserManager
    

    To

    @inject SignInManager SignInManager
    @inject UserManager UserManager
    

提交回复
热议问题