Tech Off Post

Single Post Permalink

View Thread: Where do you store single pieces of information?
  • User profile image
    Minh

    I'm exploring this scenario:

    web.config

    <configuration>
        <appSettings file="external.config">
           <add key="[required key]" value="[value]" />
        </appSettings>
    </configuration>


    external.config

    <appSettings>
        <add key="[changeable key]" value="[changeable value] />
    </appSettings>


    Then have a function where the user can OVERWRITE external.config. Probably won't work for all setups, but it won't require a DB.

    But if I had a DB, I'd go w/ that.

    Also, I'm seeing that changing external.config doesn't trigger an app restart if you were to change web.config.