Following the documentation here:
This generates errors (2) and the code generation (1) is wrong:
.... ^^ VB really wants the "
" on the next line you know...
... Also I get 6 other errors
1) Interface 'ICat' is not implemented by this class.
2) The IdentityType of the 'ConsoleApplication2.Cat' is not compatible with the number of its identity fields.
3) The IdentityType of the 'ConsoleApplication2.Dog' is not compatible with the number of its identity fields.
4) The IdentityType of the 'ConsoleApplication2.Pet' is not compatible with the number of its identity fields.
5) The IdentityType of the 'ConsoleApplication2.Rottweiler' is not compatible with the number of its identity fields.
6) The IdentityType of the 'ConsoleApplication2.WienerDog' is not compatible with the number of its identity fields.
What I would like to have is this something like this:
ContactId: Int32 (pk, autonr)
EmployeeId: Int32 (pk, autonr)
ContactId: Int32 (fk > Contact.ContactID)
So: With my model I want to do this:
.Type = 1
When I do this ^ the model automatically creates a Contact record with ContactId=1 (autonr) AND creates a Employee record with EmployeeId=1 (autonr) and ContactId=1 (bind to contact fk) ...
Or am I expecting to much? :-)