Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Store settings in the database?
Message
 
À
12/09/2013 10:36:34
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 4.0
OS:
Windows 8
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01583001
Message ID:
01583299
Vues:
46
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform