Back to Devexpress

OriginalOccurrenceDateHelper.Update(AppointmentStorageBase) Method

corelibraries-devexpress-dot-xtrascheduler-dot-originaloccurrencedatehelper-dot-update-x28-devexpress-dot-xtrascheduler-dot-appointmentstoragebase-x29.md

latest3.4 KB
Original Source

OriginalOccurrenceDateHelper.Update(AppointmentStorageBase) Method

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

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.Desktop.dll

NuGet Package : DevExpress.Scheduler.CoreDesktop

Declaration

csharp
public static void Update(
    AppointmentStorageBase storage
)
vb
Public Shared Sub Update(
    storage As AppointmentStorageBase
)

Parameters

NameTypeDescription
storageAppointmentStorageBase

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

FetchAppointments Event - Handling Large Datasets

OriginalOccurrenceDateHelper Class

OriginalOccurrenceDateHelper Members

DevExpress.XtraScheduler Namespace