Multiple object sets per type are not supported. The object sets IdentityUsers'and Users can both contain instances of type

asp.net asp.net-mvc asp.net-mvc-4 c# entity-framework

Accepted Answer

This line is what's wrong with you:

public System.Data.Entity.DbSet<bugs_b_gone.Models.ApplicationUser> IdentityUsers { get; set; }

IdentityDbContext already includesUsers possessing a typeIDbSet<ApplicationUser> You don't have to add any of your own.DbSet for ApplicationUser . You're good if you take out that sentence.

11
8/28/2014 2:05:38 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow