Tridip Bhattacharjee

Tridip Bhattacharjee

  • NA
  • 1.2k
  • 74.2k

Question regarding Generics

Dec 22 2017 2:59 AM
what is the meaning of IdentityDbContext<ApplicationUser>
  1. public class ApplicationDbContext : IdentityDbContext<ApplicationUser>  
  2. {  
  3. public ApplicationDbContext(): base("DefaultConnection")  
  4. {  
  5. }  
  6.   
  7. protected override void OnModelCreating(DbModelBuilder modelBuilder)  
  8. {  
  9. base.OnModelCreating(modelBuilder);  
  10. modelBuilder.Entity<IdentityUser>().ToTable("MyUsers");  
  11. }  

i am bit weak in generics. please tell me the meaning of this line public class ApplicationDbContext : IdentityDbContext<ApplicationUser>

what the above line is doing?

thanks

Answers (5)