There is no implicit reference conversion from ApplicationDbContext to Microsoft.EntityFrameworkCore.DbContext

前端 未结 1 501
花落未央
花落未央 2021-01-21 04:38

While following the tutorial, I am getting an error when DbContextOptions which is ApplicationDbContext inherit to IdentityDbContext but

相关标签:
1条回答
  • 2021-01-21 05:33

    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

    0 讨论(0)
提交回复
热议问题