示例#1
0
文件: Program.cs 项目: tskielce/Lotto
        static void Main(string[] args)
        {
            var settings = ReadAllSettings();

            TxtProvider   txtProvider   = new TxtProvider(settings);
            MsSqlProvider msSqlProvider = new MsSqlProvider();

            var listData = txtProvider.CollectionDataLotto();

            try
            {
                msSqlProvider.InsertDataFromCollection(listData, settings, settings);

                Console.WriteLine("\nDownload data  - Duzy Lotek - success\n");
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

            Console.ReadKey();
        }