Skip to main content

OriginalOccurrenceDateHelper.Update(AppointmentStorageBase) Method

Populates the data source fields mapped to the Appointment.OriginalOccurrenceStart and Appointment.OriginalOccurrenceEnd properties.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.Core.Desktop.dll

NuGet Package: DevExpress.Scheduler.CoreDesktop

Declaration

public static void Update(
    AppointmentStorageBase storage
)

Parameters

Name Type Description
storage AppointmentStorageBase

An AppointmentStorageBase object that is the storage containing appointments.

Remarks

The Update method calculates the recurring series for appointment patterns and updates the data fields mapped with the AppointmentMappingInfo.OriginalOccurrenceStart and AppointmentMappingInfo.OriginalOccurrenceEnd properties. For changed and deleted occurrences, the method stores the Appointment.Start and Appointment.End values of a regular occurrence in a series, i.e., an occurrence that follows the recurrence rule.

For other appointments, the Update method writes the Appointment.Start and Appointment.End values to the OriginalOccurrenceStart and OriginalOccurrenceEnd data fields.

The OriginalOccurrenceStart and OriginalOccurrenceEnd data fields can be used to build the queries in the SchedulerStorageBase.FetchAppointments event handler so that changed occurrences are not filtered out. For more information, review the FetchAppointments Event - Handling Large Datasets article.

See Also