问题添加IdentityDbContext

问题描述 投票:0回答:1

我正在使用Asp Net core 3,并尝试添加身份核。当我添加IdentityDbContext时会出现错误,如果我将IdentityDbContext更改为DbContext,则错误消失了。相同的问题是当我尝试使用SQL sever添加IdentityDbContext但使用DbContext时没有错误。我收到以下错误“没有从IdentityDbContextMicrosoft.EntityFrameworkCore.DbContext的隐式引用转换”]]]Click to view error我添加了以下NuGet包Microsoft.AspNetCore.Identity.EntityFrameworkCoreMicrosoft.EntityFrameworkCore.Sqlserver。请帮助。

我正在使用Asp Net核心3,并尝试添加身份核心。当我添加IdentityDbContext时,它会提示错误,并且如果我将IdentityDbContext更改为DbContext,错误也会消失。同样的问题是当我尝试添加...

c# asp.net-core asp.net-identity asp.net-core-identity
1个回答
2
投票

将光标放在IdentityDbContext上并按F12,...

© www.soinside.com 2019 - 2024. All rights reserved.