A newer version of this page is available. Switch to the current version.

AppointmentStorage.AutoRetrieveId Property

Gets or sets whether to automatically retrieve an appointment's identity from a data source.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.2.dll


public bool AutoRetrieveId { get; set; }

Property Value

Type Default Description


True, to retrieve an appointment identifier from the appointment data source; otherwise, false.


If the AutoRetrieveId property is set to true, the newly created appointment retrieves its identifier from the data adapter or the bound data source after the changes are committed to the data source. Use this setting if the Appointment.Id mapping (AppointmentMappingInfo.AppointmentId property) is specified, the identifier is generated in the data source (e.g. auto-incremented field), and your code uses the appointment's PersistentObject.Id value. If your code does not use the appointment identifier, leave the AutoRetrieveId property set to its default value.


If the AppointmentStorage.CommitIdToDataSource property is set to true, the AutoRetrieveId property has no effect.


This API is intended to be used with the legacy SchedulerStorage only. Starting with version 18.1, SchedulerStorage and all of its satellite storages are replaced with their updated versions.

See Also