Skip to Content
0

Mockserver for navigations without referential constraints

Apr 12, 2017 at 02:24 PM

26

avatar image

Hello there,

I´m currently developing a front end and I´m having issues with the random mock data generation. I have two entities Contracts and Deliveries, they have a relationship over a third table so in the metadata there is no referential constraint for the navigation. Here are some of the bits:

<NavigationProperty Name="to_Deliveries" Relationship="ContractDeliveriesType" FromRole="ContractItemSetPrincipal" ToRole="DeliveriesSetDependent"/>

<Association Name="ContractDeliveriesType">
<End Type="ContractItemSetType" Role="ContractItemSetPrincipal" Multiplicity="1"/>
<End Type="DeliveriesSetType" Role="DeliveriesSetDependent" Multiplicity="*"/>

</Association>

<AssociationSet Name="ContractDeliveries" Association="ContractDeliveriesType">
<End Role="ContractItemSetPrincipal" EntitySet="ContractItemSet"/>
<End Role="DeliveriesSetDependent" EntitySet="DeliveriesSet"/>

</AssociationSet>

As per this link, the mockserver can generate data for associations with no referential constraints. However, this is not the case for me as no data is generated for /ContractItemSet(ContractNumber='101010',ContractItem='10')/to_Deliveries

Any hints on what might be wrong? All other associations that have a referential constraint are working.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers