Trying to understand inheritance

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
estern
Posts: 19
Joined: Tue 27 Jan 2009 18:59

Trying to understand inheritance

Post by estern » Sat 02 May 2009 19:05

In a legacy database I have a customer table and a contact table

Customer Table
InternalKey
CustomerID
Name
PrimaryContact_InternalKey

Contact Table
InternalKey
Customer_InternalKey
Name
Etc.

What I think I should be able to do is put the contact table into the model once and then inherit from it twice once for PrimaryContact and once for all Contacts.
Does anyone have an example showing how to work with the one contact table in two different contexts?

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Wed 06 May 2009 08:32

Could you please send us (support * devart * com, subject "EF Inheritance question") the full script of your legacy tables?

Post Reply