Customizing existing Identity data store and adding new entities

ASP.NET Core Identity model uses Entity Framework Core Code First model and, because of this extension, it is quite simple. We can add new classes that represent tables and provide relationships with existing Identity tables. We can also derive new classes from existing Identity entities and add more properties, such as a LinkedIn profile, Twitter, and so on.

Here, in this section, we will add a table known as User Profile, which contains information related to an employee's designation, and add some properties, such as a Twitter and LinkedIn profile in the Identity user entity itself.

The following is the updated ApplicationUser class, which inherits from IdentityUser and contains ...

Get Enterprise Application Architecture with .NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.