Exemplo n.º 1
0
        static void Main(string[] args)
        {
            using (var context = new TtcDbContext())
            {
                try
                {
                    //var vttlPlayers = new FrenoyPlayersApi(context, Competition.Vttl);
                    //vttlPlayers.StopAllPlayers();
                    //vttlPlayers.SyncPlayers();
                    //var sportaPlayers = new FrenoyPlayersApi(context, Competition.Sporta);
                    //sportaPlayers.SyncPlayers();


                    //Configuration.Seed(context, false);

                    //var vttl = new FrenoyMatchesApi(context, Competition.Vttl);
                    //vttl.SyncTeamsAndMatches();
                    //var sporta = new FrenoyMatchesApi(context, Competition.Sporta);
                    //sporta.SyncTeamsAndMatches();

                    ChangeMatchDates(context);

                    context.SaveChanges();
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.ToString());
                    Console.ReadKey();
                }
            }
        }