private async void UnlockEventCommandExecuted(Event @event) { @event.LockedUserID = null; await _adminDataUnit.SaveChanges(); LoadData(); }
/// <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="date">Initial value of the Date property.</param> /// <param name="places">Initial value of the Places property.</param> /// <param name="eventTypeID">Initial value of the EventTypeID property.</param> /// <param name="eventStatusID">Initial value of the EventStatusID property.</param> /// <param name="creationDate">Initial value of the CreationDate property.</param> /// <param name="membersOnly">Initial value of the MembersOnly property.</param> /// <param name="showInForwardBook">Initial value of the ShowInForwardBook property.</param> /// <param name="showOnCalendar">Initial value of the ShowOnCalendar property.</param> /// <param name="usedAsTemplate">Initial value of the UsedAsTemplate property.</param> /// <param name="isDeleted">Initial value of the IsDeleted property.</param> public static Event CreateEvent(global::System.Guid id, global::System.String name, global::System.DateTime date, global::System.Int32 places, global::System.Guid eventTypeID, global::System.Guid eventStatusID, global::System.DateTime creationDate, global::System.Boolean membersOnly, global::System.Boolean showInForwardBook, global::System.Boolean showOnCalendar, global::System.Boolean usedAsTemplate, global::System.Boolean isDeleted) { Event @event = new Event(); @event.ID = id; @event.Name = name; @event.Date = date; @event.Places = places; @event.EventTypeID = eventTypeID; @event.EventStatusID = eventStatusID; @event.CreationDate = creationDate; @event.MembersOnly = membersOnly; @event.ShowInForwardBook = showInForwardBook; @event.ShowOnCalendar = showOnCalendar; @event.UsedAsTemplate = usedAsTemplate; @event.IsDeleted = isDeleted; 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); }