Exemple #1
0
 private ApplicationSettingsDataProvider CreateDatabaseAccess()
 {
     if (String.IsNullOrEmpty(m_settingConnectionName))
     {
         return(ApplicationSettingsDataProvider.GetProvider());
     }
     else
     {
         return(ApplicationSettingsDataProvider.GetProvider(m_settingConnectionName));
     }
 }
        static ApplicationSettingsDataProvider GetProvider(DatabaseAccess dba)
        {
            ApplicationSettingsDataProvider dataProvider = null;

            if (DatabaseAccessFactory.IsSQLServer(dba))
            {
                dataProvider = new SqlSettingsDataProvider();
            }
            if (dataProvider != null)
            {
                dataProvider.DatabaseAccess = dba;
            }
            return(dataProvider);
        }
 public DefaultSettingsUpdater(ApplicationSettingsDataProvider provider)
 {
     m_dataProvider = provider;
 }