While following the tutorial, I am getting an error when DbContextOptions<ApplicationDbContext>
which is ApplicationDbContext inherit to IdentityDbContext but when I tried to inherit DbContext it works fine.
Exception message:
The type 'WebExtractorPortalCore.Context.ApplicationDbContext' cannot be used as type parameter 'TContext' in the generic type or method 'DbContextOptions'. There is no implicit reference conversion from 'WebExtractorPortalCore.Context.ApplicationDbContext' to 'Microsoft.EntityFrameworkCore.DbContext'.
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