ASP.NET MVC #4 : Custom properties for IdentityUser | FoxLearn
Articles Blog

ASP.NET MVC #4 : Custom properties for IdentityUser | FoxLearn


Welcome to the FoxLearn Today we will learn how to Custom Fields for Identity User Now, we will add FullName and Gender properties to Identity User class, then add migrations to your database Run enable migrations command to update FullName and Gender properties to your database You can set length of FullName If you get an error when updating your database. You can edit directly database in SQL Server You need to add FullName and Gender properties to Register Action in Account controller You need to add FullName and Gender properties to RegisterViewModel Now, We will open Register View, then add FullName and Gender properties Thank you for watching this video

16 thoughts on “ASP.NET MVC #4 : Custom properties for IdentityUser | FoxLearn

  1. Very usefull, thank so much.
    Can you explain for me how to it add value to 'id' where register account, please?
    May be use 'guid' to auto add value, but i can't see this code!
    Show me, please!

  2. Why you didnt create 2 option for Gender like enum man,woman? And use them in DropDownlistFor! The series cool but going to basic! thx

  3. Receive thanks from the beginning developer of the Ukrainian Велике тобі дякую за ці чудові знання ))

  4. How to access these new fields from the views? Example: I've added Full Name field and i want to display the current users's name on the index page

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top