/// <summary>
 /// Deprecated Method for adding a new object to the EventTypes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEventTypes(EventType eventType)
 {
     base.AddObject("EventTypes", eventType);
 }
 /// <summary>
 /// Create a new EventType object.
 /// </summary>
 /// <param name="eventTypeId">Initial value of the EventTypeId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="linkedTable">Initial value of the LinkedTable property.</param>
 /// <param name="eventTypeCategoryID">Initial value of the EventTypeCategoryID property.</param>
 public static EventType CreateEventType(global::System.Int32 eventTypeId, global::System.String name, global::System.String linkedTable, global::System.Int32 eventTypeCategoryID)
 {
     EventType eventType = new EventType();
     eventType.EventTypeId = eventTypeId;
     eventType.Name = name;
     eventType.LinkedTable = linkedTable;
     eventType.EventTypeCategoryID = eventTypeCategoryID;
     return eventType;
 }