Mapping to the Primary Data Source

The mapping between the primary table properties and the C1Scheduler storage model is handled by the C1AppointmentPlaceholder element. If you select the table in the screen designer and view the Visual Studio Properties window, you'll notice the Control Type for the primary table, Holidays in this example, is Default (C1AppointmentPlaceholder).

The Primary Key property must be set to the name of an integer, string, or GUID property that uniquely identifies an appointment record in the data source. The remaining drop-down controls let you specify date/time or string property names, as appropriate.

Set the properties as shown in the following image:

Once the property mappings are set up, the C1Scheduler control automatically handles all CRUD (Create, Read, Update, and Delete) operations on appointments. No coding is required to synchronize the model with the underlying data storage.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback