/// <summary> /// Deprecated Method for adding a new object to the Events EntitySet. Consider using the .Add method of the associated ObjectSet<T> 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="eventType">Initial value of the EventType property.</param> /// <param name="startTime">Initial value of the StartTime property.</param> /// <param name="duration">Initial value of the Duration property.</param> /// <param name="status">Initial value of the Status property.</param> /// <param name="remarks">Initial value of the Remarks property.</param> /// <param name="topic">Initial value of the Topic property.</param> public static Event CreateEvent(global::System.Int32 id, global::System.String eventType, global::System.DateTime startTime, global::System.String duration, global::System.String status, global::System.String remarks, global::System.String topic) { Event @event = new Event(); @event.Id = id; @event.EventType = eventType; @event.StartTime = startTime; @event.Duration = duration; @event.Status = status; @event.Remarks = remarks; @event.Topic = topic; return @event; }