ef code first - OnModelCreating fails when Context inherits from IdentityDbContext -
i had data access implemented below , working
- contexct inheriting db context
- had onmodelcreating configurations
- 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
Post a Comment