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

public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
{
    public DbSet<CardModel> Cards { get; set; }
    public DbSet<Banners> Banner { get; set; }
    public DbSet<Category> Category { get; set; }

    public ApplicationDbContext()
        : base("DbConnection", throwIfV1Schema: false)
    {
    }

    public static ApplicationDbContext Create()
    {
        return new ApplicationDbContext();
    }
     
    public System.Data.Entity.DbSet<E_Commerce.Models.ApplicationUser> ApplicationUsers { get; set; }
}
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459

0 Answers0