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

后端 未结 5 1647
野趣味
野趣味 2021-02-13 00:49

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条回答
  •  被撕碎了的回忆
    2021-02-13 01:28

    Solved.

    The package that was keeping those classes Microsoft.AspNetCore.Identity.EntityFrameworkCore changed. To access those clases (IdentityUser and IdentityRole) one must add

    using Microsoft.AspNetCore.Identity;
    

    With this, the problem is gone.

提交回复
热议问题