Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Store Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems.

Go Back   Vista Forums > Vista technology newsgroups > WinFS

Navigation Property

Reply
 
Thread Tools Display Modes
Old 03-23-2006   #1 (permalink)
Jérôme Piquot
Guest
 
Posts: n/a

Navigation Property

When i put the following navigation property in two objects when i add a
link in one do i see it in the other navigation property?



<EntityType Name="ProductCollection" BaseType="Storage.Folder">

<NavigationProperty Name="InventoryItems"
Association="ProductCollectionItems" FromRole="ProductCollection"
ToRole="InventoryItem">

<Documentation>Navigational property for exposing inventory items linked to
the product collection."</Documentation>

</NavigationProperty>

</EntityType>

<EntityType Name="InventoryItem" BaseType="Storage.Item">

<NavigationProperty Name="ProductCollections"
Association="ProductCollectionItems" ToRole="ProductCollection"
FromRole="InventoryItem">

<Documentation>Navigational property for exposing product collections linked
to the inventory item."</Documentation>

</NavigationProperty>

<Property Name="Code" Type="Storage.String" Size="64" Nullable="false"
ChangeUnit="Storage.Item.Item" />

<Property Name="PrintName" Type="Storage.String" Size="255" Nullable="true"
ChangeUnit="Storage.Item.Item" />

</EntityType>

<EntityType Name="ProductCollectionItemsLink" BaseType="Storage.Link">

<Documentation>Link type used to designate references member of a
trademark.</Documentation>

<PropertyConstraint Property="SourceRef"
Type="Ref(KProduct.ProductCollection)" />

<PropertyConstraint Property="TargetRef" Type="Ref(KProduct.InventoryItem)"
/>

</EntityType>

<Association Name="ProductCollectionItems">

<Documentation>

This is a link-based association which returns the list of references for a
given trademark.

</Documentation>

<End Role="ProductCollection" PluralRole="ProductCollections"
Type="KProduct.ProductCollection" />

<End Role="InventoryItem" PluralRole="InventoryItems"
Type="KProduct.InventoryItem" />

<AssociationEntity Type="ProductCollectionItemsLink"
Role="ProductCollectionItem" PluralRole="ProductCollectionItems">

<Reference FromRole="ProductCollectionItem" ToRole="ProductCollection"
Property="SourceRef" />

<Reference FromRole="ProductCollectionItem" ToRole="InventoryItem"
Property="TargetRef" />

</AssociationEntity>

</Association>


  Reply With Quote

Reply

Thread Tools
Display Modes









Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46