Open Closed

Joining ABP entities /tables with user define entities/tables #1858


User avatar
0
radhikashrotre created

  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no no
  • Exception message and stack trace: no
  • Steps to reproduce the issue:" no

I am trying to join abp entities with userdefined tables e.g Abpuser and AbpOrganizationUnit

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

5 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi @radhikashrotre, what is your ABP Framework version?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    radhikashrotre created

    Hi @radhikashrotre, what is your ABP Framework version?

    ABP FW 4.4

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    With version 4.4, EntityFrameworkCore.DbMigrations project has been removed and DbContexts are unified. You can check this community article to understand the circumstances under that. If you were migrated your application from 4.3 to 4.4 please apply the steps in the article to unify your db context.

    Can you examine your db context class inherit from ISaasDbContext or not?

    [ReplaceDbContext(typeof(IIdentityProDbContext))]
    [ReplaceDbContext(typeof(ISaasDbContext))] //ensure this line is exists
    [ConnectionStringName("Default")]
    public class MyDbContext : 
            AbpDbContext<MyDbContext>, 
            IIdentityProDbContext,
            ISaasDbContext //ensure this line is exists
    {
        //...
    }
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    radhikashrotre created

    With version 4.4, EntityFrameworkCore.DbMigrations project has been removed and DbContexts are unified. You can check this community article to understand the circumstances under that. If you were migrated your application from 4.3 to 4.4 please apply the steps in the article to unify your db context.

    Can you examine your db context class inherit from ISaasDbContext or not?

    [ReplaceDbContext(typeof(IIdentityProDbContext))] 
    [ReplaceDbContext(typeof(ISaasDbContext))] //ensure this line is exists 
    [ConnectionStringName("Default")] 
    public class MyDbContext :  
            AbpDbContext<MyDbContext>,  
            IIdentityProDbContext, 
            ISaasDbContext //ensure this line is exists 
    { 
        //... 
    } 
    
    1. Yes, I have these lines of code in DBContext.
    2. I have used IdentityUser and IIdentityUserRepository to gather data for Users and OrganizationUnit with these I want to join based on condition my userdefined two entities.
    3. I have constructed a class where I have called IIdentityUserRepository, IdentityUser objects using Get method. Anything I need to change here.
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer
    1. Yes, I have these lines of code in DBContext.
    2. I have used IdentityUser and IIdentityUserRepository to gather data for Users and OrganizationUnit with these I want to join based on condition my userdefined two entities.
    3. I have constructed a class where I have called IIdentityUserRepository, IdentityUser objects using Get method.
      Anything I need to change here.

    Hi @radhikashrotre, sorry for the late response. Can you share the relevant method that you've tried to join the entities?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.