Example #1
0
 /// <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);
 }
Example #2
0
 /// <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;
 }