Example #1
0
 public static SessionTime GetSessionTimeObject(SessionTime obj)
 {
     return new SessionTime
     {
         Id = obj.Id,
         //ProviderCinema = obj.ProviderCinema,
         //Movie = obj.Movie,
         Date = obj.Date,
         Time = obj.Time,
     };
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the SessionTimes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSessionTimes(SessionTime sessionTime)
 {
     base.AddObject("SessionTimes", sessionTime);
 }
 /// <summary>
 /// Create a new SessionTime object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="providerCinema_Id">Initial value of the ProviderCinema_Id property.</param>
 /// <param name="movie_Id">Initial value of the Movie_Id property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 /// <param name="time">Initial value of the Time property.</param>
 public static SessionTime CreateSessionTime(global::System.Int32 id, global::System.Int32 providerCinema_Id, global::System.Int32 movie_Id, global::System.String date, global::System.String time)
 {
     SessionTime sessionTime = new SessionTime();
     sessionTime.Id = id;
     sessionTime.ProviderCinema_Id = providerCinema_Id;
     sessionTime.Movie_Id = movie_Id;
     sessionTime.Date = date;
     sessionTime.Time = time;
     return sessionTime;
 }