protected override void OnModelCreating(System.Data.Entity.DbModelBuilder modelBuilder)
 {
     base.OnModelCreating(modelBuilder);
     modelBuilder.Entity <User>().ToTable("User");
     modelBuilder.Entity <IdentityRole>().ToTable("Role");
     modelBuilder.Entity <IdentityUserRole>().ToTable("UserRole");
     modelBuilder.Entity <IdentityUserClaim>().ToTable("UserClaim");
     modelBuilder.Entity <IdentityUserLogin>().ToTable("UserLogin");
     //modelBuilder.Entity<User>().Ignore(c => c.Id);
     //.Ignore(c => c.LockoutEnabled)
     //.Ignore(c => c.LockoutEndDateUtc)
     //.Ignore(c => c.SecurityStamp)
     //.Ignore(c => c.TwoFactorEnabled)
     //.Ignore(c => c.EmailConfirmed)
     //.Ignore(c => c.PhoneNumberConfirmed)
     //.Ignore(c => c.AccessFailedCount);
     modelBuilder.Ignore <IdentityUser>();
 }
Esempio n. 2
0
 public static void IgnoreDemoClasses(System.Data.Entity.DbModelBuilder modelBuilder)
 {
     modelBuilder.Ignore <DemoItem>();
     modelBuilder.Ignore <DemoUser>();
     modelBuilder.Ignore <DemoBinaryContent>();
 }