/// <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="id">Initial value of the ID property.</param>
 /// <param name="allDay">Initial value of the AllDay property.</param>
 /// <param name="label">Initial value of the Label property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 /// <param name="type">Initial value of the Type property.</param>
 public static Event CreateEvent(global::System.Int32 id, global::System.Boolean allDay, global::System.Int32 label, global::System.Int32 status, global::System.Int32 type)
 {
     Event @event = new Event();
     @event.ID = id;
     @event.AllDay = allDay;
     @event.Label = label;
     @event.Status = status;
     @event.Type = type;
     return @event;
 }