Monday, 30 November 2015

ASP.Net Identity 2 Working with Custom Properties - Step 18

> C#/.Net Samples
> .Net Authentication
> Setting up ASP.NET Identity 2 with External Logins Facebok Google Microsoft and Twitter

Step # 18

 

For other steps follow:

Setting up ASP.NET Identity 2 with External Logins Facebook Google Microsoft and Twitter

We can add custom properties to our models and migrations will add these to the database tables.

I have added FirstName and LastName to ApplicationUser.cs.

Then updated the create and edit users actions/views accordingly to capture data.

If you expand the AspNetUsers Tables, you’ll see the two fields added.