ASPxAppointmentStorage.CommitIdToDataSource Property

Gets or sets whether the IPersistentObject.Id property value is committed to the underlying datasource.

Namespace: DevExpress.Web.ASPxScheduler

Assembly: DevExpress.Web.ASPxScheduler.v20.2.dll


public bool CommitIdToDataSource { get; set; }
Public Property CommitIdToDataSource As Boolean

Property Value

Type Default Description


true to save appointment ID to the data source; otherwise, false.


When an appointment is changed, the corresponding data row in the data source is updated automatically to reflect changes. The data column to which a new value should be stored is determined using the mappings mechanism (ASPxAppointmentStorage.Mappings). If the CommitIdToDataSource property is false, the data controller will not call the SetRowValue method to commit an appointment ID property to the data row.

Set this property to false if you use an explicit call of the ASPxSchedulerStorage.SetAppointmentId method to the specify appointment ID later. In addition, if the data source has an auto-increment field mapped to the appointment ID, the IPersistentObject.Id property value should not be passed to the data source and you are advised to set the CommitIdToDataSource to false.

See Also