Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Store settings in the database?
Message
De
16/09/2013 07:33:35
 
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:
01583330
Vues:
30
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform