Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Store settings in the database?
Message
From
16/09/2013 07:33:35
 
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:
01583330
Views:
31
>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,

Thanks Kevin
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform