且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

没有从ApplicationDbContext到Microsoft.EntityFrameworkCore.DbContext的隐式引用转换。

更新时间:2023-11-14 15:02:10

For a perfect answer I need more information but form the error image you seem to be mixing ASP.Net packages and ASP.NETCore packages.

You have referenced Microsoft.EntityFrameworkCore which is a .net core package but then referenced Microsoft.AspNet.Identity.EntityFramework which is a .net (not core) package.

Remove the later package and reference Microsoft.AspNetCore.Identity.EntityFrameworkCore instead and it should work