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

Resources without ForeignKeyId

0 Answers 53 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Gabriel
Top achievements
Rank 1
Gabriel asked on 02 Oct 2008, 11:39 PM
I don't want to include the foreign key id in my Appointment object - an Appointment HAS A Resource, not a Resource Id, and I shouldn't need to include the foreign key. Is there a way to do this? In other words, if I have an Appointment object that has an Employer object represented as an Employer dropdown, is there a way for the Scheduler to save the Employer object to the Appointment (basically the Scheduler would do something like myAppointment.Employer = myEmployer, where myEmployer is the Employer instance represented by the dropdown selection)? I don't want to include notions of foreign keys in my objects. That is bad design.


Gabriel

No answers yet. Maybe you can help?

Tags
Scheduler
Asked by
Gabriel
Top achievements
Rank 1
Share this question
or