/// <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="name">Initial value of the Name property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="locationId">Initial value of the LocationId property.</param> /// <param name="twitterTag">Initial value of the TwitterTag property.</param> public static Event CreateEvent(global::System.Int32 id, global::System.String name, global::System.String description, global::System.Int32 locationId, global::System.String twitterTag) { Event @event = new Event(); @event.Id = id; @event.Name = name; @event.Description = description; @event.LocationId = locationId; @event.TwitterTag = twitterTag; return @event; }