Пример #1
0
 private void AddTable(string tableName)
 {
     try
     {
         SqlDdl.AddBasicTable(GetConfig().connectionString, GetConfig().appname, tableName);
     }
     catch (Exception exception)
     {
         Console.WriteLine("Error: Failed to AddTable;");
         Console.WriteLine("ErrorMessage:" + exception.Message);
         Console.WriteLine("StackTrace:" + exception.StackTrace);
         try
         {
             Assert.Fail("Failed to AddTable " + exception.Message);
         }
         catch
         {
             throw new Exception("Failed to AddTable " + exception.Message);
         }
     }
 }