Can't inherit from IdentityUser and IdentityRole in ASP.NET Core 2.0

后端 未结 5 2244
一向
一向 2021-02-13 00:51

I\'m trying to finish updating to .NET Core 2.0 but a couple of errors pop up:

The problem:

I have two classes, ApplicationRole and ApplicationU

5条回答
  •  猫巷女王i
    2021-02-13 01:12

    You need to install Microsoft.AspNetCore.Identity.EntityFramework package

    Install-Package Microsoft.AspNetCore.Identity.EntityFramework
    

    or

    dotnet add package Microsoft.AspNetCore.Identity.EntityFramework
    

提交回复
热议问题