Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

Modify ASP.NET Owin Identity User

$
0
0

I am attempting to add a few fields to the Identity User for the Owin Identity, like this:

public class ApplicationUser : IdentityUser
{
    public async Task<ClaimsIdentity> GenerateUserIdentityAsync(UserManager<ApplicationUser> manager)
    {
        var userIdentity = await manager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie);
        return userIdentity;
    }

    public DateTime BirthDate { get; set; }
}

However, I get this error:

Mapping and metadata information could not be found for EntityType 'Code.ApplicationUser'.  I need help understanding this and how to fix it.

Thank you,


Viewing all articles
Browse latest Browse all 4850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>