Skip to Content
Former Member
Apr 12, 2017 at 02:24 PM

Mockserver for navigations without referential constraints

76 Views Last edit Apr 12, 2017 at 02:24 PM 2 rev

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="*"/>


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


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.