internal static void Configure()
 {
     if (Environments.RdsProvider == "Local")
     {
         RdsConfigurator.Configure();
         LoginsConfigurator.Configure();
     }
     TablesConfigurator.Configure();
 }
示例#2
0
 internal static void Configure()
 {
     if (Environments.RdsProvider == "Local")
     {
         RdsConfigurator.Configure();
         LoginsConfigurator.Configure();
     }
     TablesConfigurator.Configure();
     if (Parameters.Service.ImportData)
     {
         DataImporter.Import();
     }
 }
 internal static void Configure()
 {
     if (Environments.RdsProvider == "Local")
     {
         try
         {
             RdsConfigurator.Configure();
             LoginsConfigurator.Configure();
         }
         catch (System.Data.SqlClient.SqlException e)
         {
             Consoles.Write($"[{e.Number}] {e.Message}", Consoles.Types.Error, true);
         }
         catch (System.Exception e)
         {
             Consoles.Write(e.ToString(), Consoles.Types.Error, true);
         }
     }
     TablesConfigurator.Configure();
 }