Skip to main content

SchedulerExtension.GetAppointmentToInsert<T>(String, Object, MVCxAppointmentStorage, MVCxResourceStorage) Method

OBSOLETE

Use the GetAppointmentsToInsert method instead.

Obtains appointments which should be inserted into the data source.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v23.2.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

[Obsolete("Use the GetAppointmentsToInsert method instead.")]
public static T GetAppointmentToInsert<T>(
    string schedulerName,
    object appointmentDataObject,
    MVCxAppointmentStorage appointmentStorage,
    MVCxResourceStorage resourceStorage
)

Parameters

Name Type Description
schedulerName String

The name of a Scheduler as it is specified by the SettingsBase.Name property.

appointmentDataObject Object

A collection of appointments in the scheduler.

appointmentStorage MVCxAppointmentStorage

An MVCxAppointmentStorage object that implements the appointment storage functionality and contains mappings.

resourceStorage MVCxResourceStorage

An MVCxResourceStorage object that implements the resource storage functionality and contains mappings.

Type Parameters

Name
T

Returns

Type Description
T

A Model data class instance that is the entity contained in the appointment data source and mapped to an appointment.

Remarks

The GetAppointmentToInsert<T> method creates a fake Scheduler but does not apply all scheduler settings specified in the view, for better performance. Then, an appointment being inserted is retrieved from this Scheduler instance.

See Also