Starts in:
2 DAYS
9 HRS
49 MIN
0 SEC
Starts in:
2 D
9 H
49 M
0 S
Open Closed

Move appsetting.json content to database and access it realtime #3099


User avatar
0
lalitChougule created
  • ABP Framework version: v4.3.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no / yes
  • Exception message and stack trace: N.A
  • Steps to reproduce the issue:" N.A

Hi,

I have multitenant microservice application. appsettings details are different for each tenant. I wish not to maintain a appsettings file or if I have to then I have to maintain only common settings there. But my other tenant related settings should come from database.

How do I achieve this , any suggestions ?


3 Answer(s)
  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Hi @lalitChougule

    appsettings is not a part of ABP Framework. It's part of Microsoft.Extensions.Configuration namespace. So I'm not sure what is the best way to move configurations to database but there is an example about what you exactly want: https://stackoverflow.com/questions/60330342/can-i-move-configuration-from-appsettings-json-to-database-in-an-asp-net-core-mv

  • User Avatar
    0
    lalitChougule created

    Hi @enisn,

    Can't we use TenantSettingValueProvider ? This is also a kind of setting manager right ?

  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    Yes, you can try using TenantSettingValueProvider. Let us know if you come across any problems related to using it.

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