Beispiel #1
0
 internal static void GetPrefixesAndSuffixes()
 {
     Logger.Info("Getting Manager configuration for prefixes and suffixes.");
     InsertSuffix          = ConsolidationTools.GetValueFromConfiguration("InsertSuffix", ConfigurationTypes.AppSetting);
     UpdateSuffix          = ConsolidationTools.GetValueFromConfiguration("UpdateSuffix", ConfigurationTypes.AppSetting);
     DeleteSuffix          = ConsolidationTools.GetValueFromConfiguration("DeleteSuffix", ConfigurationTypes.AppSetting);
     StoredProcedurePrefix = ConsolidationTools.GetValueFromConfiguration("StoredProcedurePrefix", ConfigurationTypes.AppSetting);
     TablePrefix           = ConsolidationTools.GetValueFromConfiguration("TablePrefix", ConfigurationTypes.AppSetting);
 }
Beispiel #2
0
 private static string GetConnectionString(string connectionToUse)
 {
     try
     {
         return(ConsolidationTools.GetValueFromConfiguration(connectionToUse, ConfigurationTypes.ConnectionString));
     }
     catch (ConfigurationErrorsException cee)
     {
         Logger.Error(cee);
         throw cee;
     }
 }
Beispiel #3
0
 internal static void GetConfigurationSettings()
 {
     DefaultConnection          = ConsolidationTools.GetValueFromConfiguration("DefaultConnection", ConfigurationTypes.AppSetting);
     DefaultSchema              = ConsolidationTools.GetValueFromConfiguration("DefaultSchema", ConfigurationTypes.AppSetting);
     ConnectionType             = (ConnectionTypes)Enum.Parse(typeof(ConnectionTypes), ConsolidationTools.GetValueFromConfiguration("ConnectionType", ConfigurationTypes.AppSetting));
     AutoCreateStoredProcedures = bool.Parse(ConsolidationTools.GetValueFromConfiguration("AutoCreateStoredProcedures", ConfigurationTypes.AppSetting));
     AutoCreateTables           = bool.Parse(ConsolidationTools.GetValueFromConfiguration("AutoCreateTables", ConfigurationTypes.AppSetting));
     EnableLogInDatabase        = bool.Parse(ConsolidationTools.GetValueFromConfiguration("EnableLogInDatabase", ConfigurationTypes.AppSetting));
     EnableLogInFile            = bool.Parse(ConsolidationTools.GetValueFromConfiguration("EnableLogInFile", ConfigurationTypes.AppSetting));
     ConstantTableConsolidation = bool.Parse(ConsolidationTools.GetValueFromConfiguration("ConstantTableConsolidation", ConfigurationTypes.AppSetting));
     AutoAlterStoredProcedures  = bool.Parse(ConsolidationTools.GetValueFromConfiguration("AutoAlterStoredProcedures", ConfigurationTypes.AppSetting));
     AutoAlterTables            = bool.Parse(ConsolidationTools.GetValueFromConfiguration("AutoAlterTables", ConfigurationTypes.AppSetting));
     Logger.Info("Got Manager configuration settings.");
 }