/// <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);
 }
 /// <summary>
 /// Create a new Event object.
 /// </summary>
 /// <param name="eventID">Initial value of the EventID property.</param>
 /// <param name="startTime">Initial value of the StartTime property.</param>
 /// <param name="endTime">Initial value of the EndTime property.</param>
 /// <param name="eventTypeID">Initial value of the EventTypeID property.</param>
 /// <param name="linkedTable">Initial value of the LinkedTable property.</param>
 /// <param name="eventCategoryID">Initial value of the EventCategoryID property.</param>
 public static Event CreateEvent(global::System.Int32 eventID, global::System.DateTime startTime, global::System.DateTime endTime, global::System.Int32 eventTypeID, global::System.String linkedTable, global::System.Int32 eventCategoryID)
 {
     Event @event = new Event();
     @event.EventID = eventID;
     @event.StartTime = startTime;
     @event.EndTime = endTime;
     @event.EventTypeID = eventTypeID;
     @event.LinkedTable = linkedTable;
     @event.EventCategoryID = eventCategoryID;
     return @event;
 }