User in Entity type MVC5 EF6 May 4, 2023 by Tarik I had the same problem and I found that I had not called base.OnModelCreating(modelBuilder); in my DbModel