5
Reply

Question regarding Generics

Tridip Bhattacharjee

Tridip Bhattacharjee

Dec 22 2017 2:59 AM
146
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)