I'm using EF Core 1.0 (although I guess it's generic question for EF).
I have table Resource, Employee and Equipment (Resource is like a base table, meaning Employee is also Resource and Equipment is also Resource).
So when creating Employee record I would like to automatically insert record into Resource table.
All tables has ID column.
Resource.ID is PK identity.
Employee.ID is PK (not identity) - it's FK to Resource.ID
Is there sexy way of doing it in EF (other than manually adding both records in my code)?
Thanks!