我正在使用Asp Net core 3并尝试添加身份核心。当我添加IdentityDbContext它时会出现错误,如果我更改IdentityDbContext为DbContext错误就消失了。同样的问题是当我尝试添加SQL severusingIdentityDbContext但在 using 时没有错误DbContext。我收到以下错误“没有从IdentityDbContext到的隐式引用转换Microsoft.EntityFrameworkCore.DbContext”
。
我添加了以下 NuGet 包Microsoft.AspNetCore.Identity.EntityFrameworkCore和Microsoft.EntityFrameworkCore.Sqlserver。请帮忙。