April 2017
Intermediate to advanced
564 pages
24h 7m
English
Once these packages are downloaded, we can create our custom DataContext class that will be derived from the IdentityDbContext class. Usually, with Entity Framework Code First model, we inherit our custom data context class from the DbContext class and then define DbSet properties of entities to create tables. With ASP.NET Core Identity, we have to inherit our custom data context class from the IdentityDbContext class and specify a class that inherits from IdentityUser. IdentityDbContext is the main base class provided by the ASP.NET Core Identity framework that derives from all the necessary classes required to manage roles, claims, users, tokens, and more.
Here is a screenshot of the IdentityDbContext ...
Read now
Unlock full access