This question is locked. New answers and comments are not allowed.
Hello,
Is it possible to have something like this:
1) Table Contacts (entity Contact)
2) Table Suppliers (Entity Supplier)
3) Supplier inherits from Contact
Now I can add a Contact "Erik".
I can add a Supplier "Telerik". This will generate a discriminator value in contact.
Q: Can I make "Erik" a supplier? So:
If I try this with my model, I get an error about the discriminator value; so, OA thinks retrieving the Suppliers is an error because of this.
Is the only solution a FK? (No inhertiance and using Supplier.Contact.Name)
Erik
Is it possible to have something like this:
1) Table Contacts (entity Contact)
2) Table Suppliers (Entity Supplier)
3) Supplier inherits from Contact
Now I can add a Contact "Erik".
I can add a Supplier "Telerik". This will generate a discriminator value in contact.
Q: Can I make "Erik" a supplier? So:
Dim
C
As
Contact = GetContact(1) (=
"Erik"
)
Dim
S
As
New
Supplier
S.ContactId = C.ContactId
S.SupplierType =
"Hoster"
Connection.Add(S)
Connection.SaveChanges
If I try this with my model, I get an error about the discriminator value; so, OA thinks retrieving the Suppliers is an error because of this.
Is the only solution a FK? (No inhertiance and using Supplier.Contact.Name)
Erik