更新时间: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