From the course: ASP.NET Core: Token-Based Authentication

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Adding default identity tables using EF Core

Adding default identity tables using EF Core - ASP.NET Core Tutorial

From the course: ASP.NET Core: Token-Based Authentication

Adding default identity tables using EF Core

- [Instructor] On this part, you'll learn how to add the default identity framework tables using the Entity Framework Core. To add these tables to the database, you can just use the identity frameworks models and properties. But with the Entity Framework Core, it is possible to inherit from one of the identity models and add custom properties, which are going to be translated as custom columns in the database. Now, let us to go to Visual Studio and see it in action. The first thing that we are going to do in Visual Studio is that we are going to create a custom model and inherit from the identity user base class. Then we are going to add a custom property. And we are going to see how this custom property creates a custom column in the SQL Server database that we created on the last part. So for that, let us go to the Solution Explorer. And then inside the data folder, we are going to create a new folder. We're going to…

Contents