/// <summary> /// Deprecated Method for adding a new object to the EventTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> 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> public static EventType CreateEventType(global::System.Int32 eventTypeId, global::System.String name) { EventType eventType = new EventType(); eventType.EventTypeId = eventTypeId; eventType.Name = name; return eventType; }