SchedulerExtension.GetAppointmentsToInsert<T>(SchedulerSettings, Object) Method
Obtains appointments which should be inserted into the data source.
public static T GetAppointmentsToInsert<T>( SchedulerSettings settings, object appointmentDataObject )
Public Shared Function GetAppointmentsToInsert(Of T)( settings As SchedulerSettings, appointmentDataObject As Object ) As T()
A SchedulerSettings object containing settings applied to the Scheduler.
A collection of appointments in the scheduler.
A Model data class instance that is the entity contained in the appointment data source and mapped to an appointment.
The GetAppointmentsToInsert<T> method instantiates a Scheduler and applies the specfied settings. Then, an appointment being inserted is retrieved from this Scheduler instance.
Utilizing the GetAppointmentsToInsert<T> method allows you to handle recurring appointments correctly. Now when an end-user selects and moves multiple recurring appointments at the same time, the corresponding number of database records will be created. For example, if two recurring appointments are moved simultaneously, two records will appear in the database.