فتح مغلق

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


User avatar
0
lalitChougule خلقت
  • 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 إجابة (إجابات)
  • User Avatar
    0
    enisn خلقت
    فريق الدعم .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 خلقت

    Hi @enisn,

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

  • User Avatar
    0
    gterdem خلقت
    فريق الدعم 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 v8.2.0-preview Updated on مارس 25, 2024, 15:11