Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Store settings in the database?
Message
 
To
12/09/2013 10:36:34
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 4.0
OS:
Windows 8
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01583001
Message ID:
01583299
Views:
47
Frank,

>I've been using the mmAppSettingsManager like this:
>
>
string freightChargeName = mmAppBase.AppSettingsMgr.GetSetting("FreightName");
>
>which works fine except that the config file this value is read from is on each PC so when settings change I need to change them on multiple PCs.
>
>Is there an equivalent Mere Mortals class that I can use to read settings from a table in my database instead?

The settings manager is extensible:

1. Create a subclass of mmAppSettingsManager
2. In your subclass, override the methods that read and write app settings (see the mmAppSettingsManager class topic in the Dev Guide)
3. In your application's factory, override the CreateAppSettingsManager() method and instantiate your custom app settings manager. For details, see the MM .NET Dev Guide topic "The Factory Object"

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform