Ejemplo n.º 1
0
 public static Cinema GetCinemaObject(Cinema obj)
 {
     return new Cinema
                {
                    Id = obj.Id,
                    CinemaWebId = obj.CinemaWebId,
                    Name = obj.Name,
                    Address = obj.Address,
                    Phone = obj.Phone,
                    Latitude = obj.Latitude,
                    Longitude = obj.Longitude,
                    ImageUrl = obj.ImageUrl,
                    MapUrl = obj.MapUrl,
                };
 }
 /// <summary>
 /// Create a new Cinema object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="cinemaWebId">Initial value of the CinemaWebId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="address">Initial value of the Address property.</param>
 /// <param name="phone">Initial value of the Phone property.</param>
 public static Cinema CreateCinema(global::System.Int32 id, global::System.String cinemaWebId, global::System.String name, global::System.String address, global::System.String phone)
 {
     Cinema cinema = new Cinema();
     cinema.Id = id;
     cinema.CinemaWebId = cinemaWebId;
     cinema.Name = name;
     cinema.Address = address;
     cinema.Phone = phone;
     return cinema;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Cinemas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCinemas(Cinema cinema)
 {
     base.AddObject("Cinemas", cinema);
 }