/// <summary> /// Create a new Reservation object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="eventID">Initial value of the EventID property.</param> public static Reservation CreateReservation(global::System.Guid id, global::System.Guid eventID) { Reservation reservation = new Reservation(); reservation.ID = id; reservation.EventID = eventID; return reservation; }
/// <summary> /// Deprecated Method for adding a new object to the Reservations EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToReservations(Reservation reservation) { base.AddObject("Reservations", reservation); }