/// <summary> /// Deprecated Method for adding a new object to the Tickets EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTickets(Ticket ticket) { base.AddObject("Tickets", ticket); }
/// <summary> /// Create a new Ticket object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="isPaid">Initial value of the isPaid property.</param> public static Ticket CreateTicket(global::System.Int32 id, global::System.Boolean isPaid) { Ticket ticket = new Ticket(); ticket.Id = id; ticket.isPaid = isPaid; return ticket; }