Skip to content
Jeremy van Dyk edited this page Feb 3, 2016 · 22 revisions

Description

[UNDER RECONSTRUCTION] - Note that the wiki is in the process of being reworked as the simple scenarios are now even simpler than in the past. All information in this wiki is still relevant though, but the order and consistency may be off until we finish reworking it. - 2015-December-19

Currently ConfigurationAssist supports the following:

  • Mapping AppSettings to Config Classes
  • Mapping Config Sections in Groups to the below types:
  • Mapping Config Sections to custom ConfigurationSection typed Config Classes
  • Mapping Config Sections that use NameValueSectionHandler
  • Mapping Config Sections that use DictionarySectionHandler
  • Mapping Config Sections that use SingleTagSectionHandler

Its often convenient to split app/web.config keys into logical groupings. This is where Configuration Sections come in handy. Its long supported feature of .Net but can be a little tedious if you want to strongly type the section.

ConfigurationAssist is here to help remove the repetitiveness involved in using config sections on strongly typed objects. It will also allow mapping to the keys in AppSetting and remove the tedium of converting the keys to other primitive types.

How to use it

I have set up some basic examples and explanations in the sub pages:

Sections - Grouped

Non-String Values

Section Types and Strategies Explained

Installation

ConfigurationAssist is currently available on NuGet.

PM> Install-Package ConfigurationAssist

It currently supports the .NET Framework 3.5+

Clone this wiki locally