Skip to main content

AppointmentStorage.AutoRetrieveId Property

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

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v23.2.dll

NuGet Package: DevExpress.Win.Scheduler

Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
public bool AutoRetrieveId { get; set; }

Property Value

Type Default Description
Boolean false

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

Remarks

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.

Note

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

Important

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