/// <summary>
 /// Deprecated Method for adding a new object to the Orders EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOrders(Order order)
 {
     base.AddObject("Orders", order);
 }
 /// <summary>
 /// Create a new Order object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="reservationID">Initial value of the ReservationID property.</param>
 /// <param name="totalPrice">Initial value of the TotalPrice property.</param>
 /// <param name="customerID">Initial value of the CustomerID property.</param>
 /// <param name="eventID">Initial value of the EventID property.</param>
 public static Order CreateOrder(global::System.Guid id, global::System.Guid reservationID, global::System.Decimal totalPrice, global::System.Guid customerID, global::System.Guid eventID)
 {
     Order order = new Order();
     order.ID = id;
     order.ReservationID = reservationID;
     order.TotalPrice = totalPrice;
     order.CustomerID = customerID;
     order.EventID = eventID;
     return order;
 }