Starts in:
1 DAY
12 HRS
57 MIN
10 SEC
Starts in:
1 D
12 H
57 M
10 S
Open Closed

Overriding dbcontext #5087


User avatar
0
moinahmed created

Is there a way to override the current dbcontext and call another for an specific App Service?

I have extended the AbdDbContext and overriding CreateFilterExpression method to inject additional database filtering only for the case of IdentityUserAppService. All looks good, but I'm unsure how to route the database calls through this new Extended dbcontext, any idea?


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can check this document.

    https://docs.abp.io/en/abp/latest/Entity-Framework-Core https://docs.abp.io/en/abp/latest/Entity-Framework-Core#replace-other-dbcontextes

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