public static String Generate(String FileName)
 {
     List<String> Messages = new List<String>();
     try
     {
         String ConnStr = String.Format("Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Persist Security Info=True", FileName);
         UpdateSpiderTableGenerator gen = new UpdateSpiderTableGenerator(ConnStr);
         Messages.Add(String.Format("Using File \'{0}\'", FileName));
         Messages.Add(gen.GenerateFinalTableUpdate());
         Messages.Add(gen.GenerateAdiChild());
     }
     catch (Exception ex)
     {
         Messages.Add(ex.ToString());
     }
     return String.Join("\n", Messages);
 }
Beispiel #2
0
        public static String Generate(String FileName)
        {
            List <String> Messages = new List <String>();

            try
            {
                String ConnStr = String.Format("Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Persist Security Info=True", FileName);
                UpdateSpiderTableGenerator gen = new UpdateSpiderTableGenerator(ConnStr);
                Messages.Add(String.Format("Using File \'{0}\'", FileName));
                Messages.Add(gen.GenerateFinalTableUpdate());
                Messages.Add(gen.GenerateAdiChild());
            }
            catch (Exception ex)
            {
                Messages.Add(ex.ToString());
            }
            return(String.Join("\n", Messages));
        }