I am trying to query the AspNetUsers table.
I have set up the db variable as follows
public ApplicationDbContext db = new ApplicationDbContext(); However, the intellisense for db does not list any of the Identity tables, but it does the others created for the web site (which are listed in IdenityModels.cs) e.g .......
public System.Data.Entity.DbSet<FeatureRequestMVC.Models.Feature> Features { get; set; } How can I get the Identity tables (like AspNetUsers) listed in the db intellisense ?
Thanks
WebMatrix.WebData.WebSecurityto get identities related functions... you can also manually add thoseASpNetUserstable into yourApplicationDbContextclass.public virtual DbSet<AspNetRole> AspNetRoles { get; set; }to IdentityModels.cs, but it says thatAspNetRolecannot be found.WebMatrixis old stuff. This question is about new Identity framework.GetUsereither when usingUser.Identity.GetUser().. it might be related.User.Identity.GetUser()because I hadn't includedusing Microsoft.AspNet.Identity;.