This is a migrated thread and some comments may be shown as answers.

Appointment.UniqueId Versus SqlAppointments.SqlAppointmentID

1 Answer 54 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Veteran
Brian asked on 29 Apr 2020, 02:56 PM

Hello, 

I've just started reviewing RadScheduleView with the intent on connecting it with data in a SQL database. While reviewing the documentation at 

https://docs.telerik.com/devtools/wpf/controls/radscheduleview/populating-with-data/binding-to-database/binding-to-db-datatier

I noticed the table definition for SqlAppointments has the column definition SqlAppointmentId as type Int. I expected to find a property of type Int in the Appointment class, but found only the property UniqueID of type string.

During test, the UniqueID property produces a value that looks to be a GUID. There are no properties within the class definition that would seem to support the database column type.

What is the designed primary key for synchronizing database records with in-memory runtime instances of an appointment?

 

 

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 04 May 2020, 09:03 AM

Hello Brian,

Thank you for the shared pictures. 

May I ask you to check out the DataBase and DataBaseEntityFramework SDK examples? They demonstrate how to setup the RadScheduleView for use with EF and show the database first and code first approaches.

I hope you find this helpful.

Regards,
Vladimir Stoyanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
ScheduleView
Asked by
Brian
Top achievements
Rank 1
Veteran
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or