Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <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;
 }