/// <summary> /// Create a new Event object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="startDate">Initial value of the StartDate property.</param> /// <param name="endDate">Initial value of the EndDate property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="information">Initial value of the Information property.</param> /// <param name="deleted">Initial value of the Deleted property.</param> public static Event CreateEvent(global::System.Int32 id, global::System.Int32 userId, global::System.DateTime startDate, global::System.DateTime endDate, global::System.String title, global::System.String information, global::System.Boolean deleted) { Event @event = new Event(); @event.Id = id; @event.UserId = userId; @event.StartDate = startDate; @event.EndDate = endDate; @event.Title = title; @event.Information = information; @event.Deleted = deleted; return @event; }
/// <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); }