示例#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);
 }
示例#2
0
 /// <summary>
 /// Create a new Event object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="location">Initial value of the Location property.</param>
 /// <param name="startDate">Initial value of the StartDate property.</param>
 /// <param name="endDate">Initial value of the EndDate property.</param>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 public static Event CreateEvent(global::System.Int64 id, global::System.String title, global::System.String location, global::System.DateTime startDate, global::System.DateTime endDate, global::System.DateTime createDate)
 {
     Event @event = new Event();
     @event.ID = id;
     @event.Title = title;
     @event.Location = location;
     @event.StartDate = startDate;
     @event.EndDate = endDate;
     @event.CreateDate = createDate;
     return @event;
 }