Episode

ASP.NET Monsters #10: Loading Settings From a Database in ASP.NET Core

While configuration has been greatly simplified in ASP.NET Core, static JSON on the server won't provide an answer for all the situations all of the time. One such case is when you need to save and load configuration settings from a database so, here, we'll show you how.

In this episode, Monster James walks us through the components required to build out a simple, custom configuration provider that can read in your settings from a database. The Monsters also talk through the mechanics and importance of overriding values of settings when using multiple sources for configuration.

You can follow the Monsters on Twitter and check out our blog for related posts.

The production code for this episode is hh.

JSON
C#