/// <summary> /// Deprecated Method for adding a new object to the EventTickets EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEventTickets(EventTicket eventTicket) { base.AddObject("EventTickets", eventTicket); }
/// <summary> /// Create a new EventTicket object. /// </summary> /// <param name="eventID">Initial value of the EventID property.</param> /// <param name="ticketID">Initial value of the TicketID property.</param> public static EventTicket CreateEventTicket(global::System.Int32 eventID, global::System.Int32 ticketID) { EventTicket eventTicket = new EventTicket(); eventTicket.EventID = eventID; eventTicket.TicketID = ticketID; return eventTicket; }