Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8789

Reuse Entity Type in different Entity Sets

$
0
0

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.


Viewing all articles
Browse latest Browse all 8789

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>