ef code first - OnModelCreating fails when Context inherits from IdentityDbContext -


i had data access implemented below , working

  1. contexct inheriting db context
  2. had onmodelcreating configurations
  3. manually addding configurations

however modified context inherit identitydbcontext<applicationuser> , stopped manually generating configurations , after onmodelcreating fails , db updates not happening @ all.

if remove onmodelcreating, works fine. run application.

can 1 guide me whats going wrong here?

i missing below line in onmodelcreating method override. after started working.

base.onmodelcreating(modelbuilder);  

Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -