Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > WinFS

Vista - Navigation Property

 
 
Old 03-23-2006   #1 (permalink)
Jérôme Piquot


 
 

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>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Set Focus To Specific Property In Property Grid .NET General
Rec set navigation VB Script
How do I use the property of a property? PowerShell
Value under the CPU property? PowerShell


Vista Forums 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 Ltd

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