This page discusses how site settings are stored and managed in Sueetie.
Sueetie Site Settings: Patterns
The architecture of Sueetie Site Settings is pretty straightforward: property names and their corresponding values. The pattern was largely based on BlogEngine.NET's smart and simple approach to storing application settings as we'll see in Origins below. The best way to demonstrate the use of Sueetie SiteSettings is how it's used on the Administrative General Site Settings page.

On the back end we're retrieving the properties with SiteSettings.Instance.[propertyname].

Unlike BlogEngine.NET's handling of blog application settings where all properties are rewritten to file storage or sql, Sueetie updates properties individually.

There's also a cache clearing method we want to use whenever we update the site settings object.
SueetieCommon.ClearSiteSettingsCache();Sueetie Site Settings: Origins
As we know, the Sueetie Site Settings model was based on BlogEngine.NET's BlogSettings object, instantiated with a Get() / Instance property.

Like BlogEngine.NET, Sueetie Site Settings are loaded from a StringDictionary collection, with each dictionary key compared with the PropertyInfo elements of the SiteSetting properties: SiteName, ContactEmail, RegistrationType and so on.

Below is a screenshot of how properties are stored in SQL Server
Top