Esempio n. 1
0
 private void DataControl_Disposed(object sender, EventArgs e)
 {
     if (context != null)
     {
         context.Dispose();
     }
 }
Esempio n. 2
0
 private void SelectGenreDialog_Disposed(object sender, EventArgs e)
 {
     if (context != null)
     {
         context.Dispose();
     }
 }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Data.DatabaseConnection.DbContextFactory.SetConnectionProvider(new SqlConnectionProvider());
            Data.Helpers.ImportFileHelper.Import(@"E:\PayEx\shows.csv");

            context = DbContextFactory.GetDbContext();
            ShowHelper.UpdateShows(context, context.Shows.ToArray(), new TvmazeApi(), CancellationToken.None, new ProgressReport());

            Console.ReadLine();

            context.Dispose();
        }