Hi,
Is it possible to reuse entity type in different entity sets?
I can do it in the Service Builder but when calling the service Gateway runtime gets confused.
Sample scenario:
Entity Types:
Request
Person
Entity Sets:
Employees (Person)
Managers (Person)
Requests (Request)
Navigation properties:
Request.Employee
Request.Manager
Associations
Request_Manager Principal Entity: Request, Dependent Person , Cardinality 1:1
Request_EmployeePrincipal Entity: Request, Dependent Person , Cardinality 1:1
Association Sets
Request_ManagerSet Principal Entity Set: Requests, Dependent Set Managers
Request_EmployeeSet Principal Entity Set: Requests, Dependent Set Employees
Call 1:
If I call Requests('123')/Manager MANAGERS_GET_ENTITY is called in DPC which is ok
Call 2:
If I call Requests('123')/Employee still MANAGERS_GET_ENTITY is called instead of EMPLOYEES_GET_ENTITY
Am I missing something?
If I copy Person to Person2 and point EntitySet Employee to Person2 then both calls are routed correctly. But I would like to avoid duplicate Entity Types.