/// <summary>
 /// Create a new Show object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 public static Show CreateShow(global::System.Int32 id)
 {
     Show show = new Show();
     show.Id = id;
     return show;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Shows EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToShows(Show show)
 {
     base.AddObject("Shows", show);
 }
Ejemplo n.º 3
0
 public void removeShow(Show show)
 {
     dal.DeleteObject(show);
     saveChanges();
 }
Ejemplo n.º 4
0
        private List<Episode> downloadAllEpisodesOfShow(Show show)
        {
            int totalPages;
            int totalEpisodes;
            List<Episode> eps = client.ShowGetEpisodesFirstPage(show.name, out totalPages, out totalEpisodes);

            for (int i = 1; i < totalPages; i++)
            {
                eps.AddRange(client.ShowGetEpisodesExtraPage(show.name, i));
            }

            return eps;
        }
Ejemplo n.º 5
0
 public ObjectSet<Episode> getShowEpisodes(Show show)
 {
     return dal.Episodes;
 }