corelibraries-devexpress-dot-xtrascheduler-dot-appointmentmappinginfo-de33ca9d.md
Gets or sets the data field to which an appointment’s PersistentObject.Id property is bound.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.dll
NuGet Package : DevExpress.Scheduler.Core
[DefaultValue("")]
public virtual string AppointmentId { get; set; }
<DefaultValue("")>
Public Overridable Property AppointmentId As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A String value that specifies the name of the bound data field.
|
Use the AppointmentId property to bind an appointment’s PersistentObject.Id property to a data field in the external data source. The data source is specified by the PersistentObjectStorage<T>.DataSource property of the AppointmentDataStorage.
If your application relies on Appointment.Id, you should provide methods for assigning the ID and updating the underlying data source with the actual ID value, as described in the PersistentObject.Id article. Consider using the AppointmentStorage.CommitIdToDataSource and the AppointmentStorage.AutoRetrieveId properties in different identifier generation scenarios.
The following code snippets (auto-collected from DevExpress Examples) contain references to the AppointmentId property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-scheduler-gantt-view/CS/dxT183299/Form1.cs#L77
AppointmentMappingInfo mappings = this.schedulerStorage.Appointments.Mappings;
mappings.AppointmentId = "Id";
mappings.Start = "StartTime";
winforms-scheduler-data-binding-entity-framework-code-first/CS/XtraSchedulerEFTest/Form1.cs#L20
this.schedulerStorage1.Appointments.Mappings.AllDay = "AllDay";
this.schedulerStorage1.Appointments.Mappings.AppointmentId = "UniqueID";
this.schedulerStorage1.Appointments.Mappings.Description = "Description";
winforms-scheduler-bind-sql-server-customize-update-delete-insert-queries/VB/Form1.vb#L31
Dim appointmentMappings As AppointmentMappingInfo = schedulerStorage.Appointments.Mappings
appointmentMappings.AppointmentId = "ID"
appointmentMappings.Start = "StartTime"
winforms-scheduler-gantt-view/VB/dxT183299/Form1.vb#L73
Dim mappings As AppointmentMappingInfo = Me.schedulerStorage.Appointments.Mappings
mappings.AppointmentId = "Id"
mappings.Start = "StartTime"
winforms-scheduler-data-binding-entity-framework-code-first/VB/XtraSchedulerEFTest/Form1.vb#L19
Me.schedulerStorage1.Appointments.Mappings.AllDay = "AllDay"
Me.schedulerStorage1.Appointments.Mappings.AppointmentId = "UniqueID"
Me.schedulerStorage1.Appointments.Mappings.Description = "Description"
See Also