/// <summary> /// Create a new Event object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="date">Initial value of the Date property.</param> /// <param name="priceTicket">Initial value of the PriceTicket property.</param> /// <param name="maxNumberAttending">Initial value of the MaxNumberAttending property.</param> /// <param name="numberAttending">Initial value of the NumberAttending property.</param> /// <param name="rating">Initial value of the rating property.</param> /// <param name="greekId">Initial value of the GreekId property.</param> public static Event CreateEvent(global::System.Int32 id, global::System.String name, global::System.DateTime date, global::System.Double priceTicket, global::System.Int32 maxNumberAttending, global::System.Int32 numberAttending, global::System.Double rating, global::System.Int32 greekId) { Event @event = new Event(); @event.Id = id; @event.Name = name; @event.Date = date; @event.PriceTicket = priceTicket; @event.MaxNumberAttending = maxNumberAttending; @event.NumberAttending = numberAttending; @event.rating = rating; @event.GreekId = greekId; return @event; }
/// <summary> /// Deprecated Method for adding a new object to the Events EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEvents(Event @event) { base.AddObject("Events", @event); }