tags:

views:

64

answers:

2
A: 

You need to use Visual Studio's Properties window.

http://msdn.microsoft.com/en-us/library/bb531247.aspx

Dustin Campbell
The only options I can access are within the tblAppointment. I thought I would be able to access it by doing something like:tblAppointment.tblAppointmentType.appCatIDwithin the Discriminator Property tab.
ClareBear
A: 

Am I understanding correctly that you want BirthAppointment to inherit from tblAppointment? If this is the case, discrimnator property is a field in the database table that used to distinguish records that represent tblAppointment objects from BirthAppointment objects. As such, you can't use appCatId since it lives in another table (tblAppointmentType).

Jason
a new appointment type is not required for each appTypeID, just the main categories (appCatID) as the properties will be the same for all the types of the same category. I'm sure someone must of come across this before? ThanksPS im working on the same problem with Clare
Andi
Those are domain issues. I am merely explaining to you that with your current schema you can not do what you are trying to do. The discriminating property must be a property in the base of your inheritance hierarchy. So you need to find a property that distinguishes objects of type tblAppointment from those of type BirthAppointment.
Jason