Reputation: 167
I start a project without use security. Then now I add by nugtpackeged AspNet.Identity and need to customize it. In internet I found a lot of tutorials about it.
But I don't find the IdentityUser.cs in Models folder and if I press F12 to go to definition I see a metadata only-read version of IdentityUser.cs.
How can I edit this to add some custom properties?
I see the other Answers here like this: How to extend available properties of User.Identity
But where I find the public class ApplicationUser : IdentityUser
?
I need create this?
Another question: I can't edit the class IdentityUser??? because for me it only appears as read only (see the image).
Image from my screen show only read class
My solution explore. See the model folder is empty
Upvotes: 0
Views: 179
Reputation: 207
Actually you can not edit that class, only you can inherit that class and add your extra properties then use that inherited class then you can easily add value in your extra properties.
Upvotes: 1