/// <summary>
 /// Create a new Event object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="categoryId">Initial value of the CategoryId property.</param>
 /// <param name="eventType">Initial value of the EventType property.</param>
 /// <param name="venueId">Initial value of the VenueId property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="time">Initial value of the Time property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 /// <param name="numOfTickets">Initial value of the NumOfTickets property.</param>
 public static Event CreateEvent(global::System.Int32 id, global::System.Int32 categoryId, global::System.String eventType, global::System.Int32 venueId, global::System.Decimal price, global::System.TimeSpan time, global::System.DateTime date, global::System.Int32 numOfTickets)
 {
     Event @event = new Event();
     @event.Id = id;
     @event.CategoryId = categoryId;
     @event.EventType = eventType;
     @event.VenueId = venueId;
     @event.Price = price;
     @event.Time = time;
     @event.Date = date;
     @event.NumOfTickets = numOfTickets;
     return @event;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Events EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEvents(Event @event)
 {
     base.AddObject("Events", @event);
 }