Open Closed

ABP Suite Not Updating DbSet as each Entity is created #3603

MrShadowland created
  • ABP Framework version: v5.3.0
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: None
  • Steps to reproduce the issue:

When I run ABP Suite create a new Entity, everything works (or appears to) and the UI / backend is correctly created including the migrations however the Entity DbSet Entires ae being placed into the wrong DbContext.cs I have two DbContext files. One for AbpIdentityServerDbContext.cs and the other for my App connections. For some reason the App Entities are defaulting to being added to the AbpIdentityServerDbContext, not the AppDbContext.cs. How do I ensure that ABP Suite adds the Entity to the correct db context?

2 Answer(s)
  • 0
    yekalkan created
    Support Team

    Hi @MrShadowland,

    Open %UserProfile%\.abp\suite\appsettings.json file in your computer.

    There you will see the list of solutions you added to ABP Suite. You can find the solution you mentioned and change DbContextFilePath and DbContextModelCreatingExtensionsFilePath values.

    However, i can not guarantee that it will work with of your custom AppDbContext.cs file content. But you can try.

  • 0
    MrShadowland created


    Thanks for the pointer. That appears to have worked perfectly.