Base solution for your next web application
Open Closed

AbpSettings from database in WebApi project! #5142


User avatar
0
OriAssurant created

I tried to set up constants in AbpSettings, created customprovider(inheriting from SettingsProvider) in WebApi project, configured it in APiModule as below:

Configuration.Settings.Providers.Add<MySettingProvider>();

However, the values are not being pulled from the database.

The following is how I am trying to pull the values: SettingManager.GetSettingValue(AppSettings.TenantManagement.URL);

Please let me know if I am missing anything.

Thank you for your help in advance.


1 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team

    Show code for MySettingProvider.