I am trying to understand how ASP.NET Core works by following this tutorial. It correctly specifies that, if I want to be able to harness the power of controller scaffolding, I have to create a project and specify Authentication as Individual user accounts.
When doing this, besides other things, it will generate this class: ApplicationDbContext : IdentityDbContext<ApplicationUser>
. After several levels of inheritance, it inherits DbContext
.
If I want to use a DbContext, why am I forced to inherit from IdentityDbContext and cannot simply inherit DbContext
?
Is it possible to use my own authentication structures and still be able to work with controller scaffolding?