Starts in:
1 DAY
6 HRS
40 MIN
39 SEC
Starts in:
1 D
6 H
40 M
39 S
Open Closed

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


User avatar
0
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)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    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.

  • User Avatar
    0
    MrShadowland created

    Hi,

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

    Regards.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06