Loren.Dorez
Loren.Dorez

Reputation: 605

Asp.net Identity - Best way to Extend

I want to use the New Asp.net Identity 3.0 with EF 7 and wanted to know the best way to extend it. For example if i wanted to add things like User's

What is the best and proper way to do this? I have seen were others have posted you add properties to the IdentityUser and i have seen others who say you should use Claims.

Any help is appreciated

Upvotes: 0

Views: 251

Answers (1)

Jelle Oosterbosch
Jelle Oosterbosch

Reputation: 1742

The base way to do this, still is to create your own user object and extend this with your properties:

public class ApplicationUser : IdentityUser
{
    public string FirstName { get; set;}
    public string LastName { get; set;}
    ...
}

Upvotes: 1

Related Questions