cancel
Showing results for 
Search instead for 
Did you mean: 

Mockserver for navigations without referential constraints

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (0)