Base solution for your next web application
Open Closed

Config Values #15

User avatar
antcandal created

What is the best aproach in BoilerPlate for deal with config values? Store it in web.config (web app) an app.config and pass through modules?


1 Answer(s)
  • User Avatar
    hikalkan created
    Support Team


    If these configurations are used on startup of the application, like connection strings, it's good to store them in the web.config (or app.config).

    For rest of settings, ABP defines ISettingManager that is used to get and change values. If you are using module-zero, then use ISettingManager. But before you should define your settings. It's not documented yet, but you can see a running example: <a class="postlink" href=""> ... ter/sample</a> See MySettingProvider for definitions and <a class="postlink" href=""> ... ice.cs#L40</a> for usage.

    If you are not using module-zero, you should implement setting store. Then you can inject and use ISettingManager.