XML Snippet: Using an AssociationGroup in a BDC Model
Applies to: SharePoint Server 2010
The following example illustrates the use of AssociationGroups in a BDC model.
Example
<AssociationGroups>
<AssociationGroup Name="SalesOrder-Customer">
<AssociationReference AssociationName="Customers Sales Orders"
Reverse="false"
EntityNamespace="AdventureWorks"
EntityName="SalesOrder" />
<AssociationReference AssociationName="Bulk Customers Sales Orders"
Reverse="false"
EntityNamespace="AdventureWorks"
EntityName="SalesOrder" />
</AssociationGroup>
<AssociationGroup Name="SalesOrder-SalesReason">
<AssociationReference AssociationName="Sales Order by Reason"
Reverse="false"
EntityNamespace="AdventureWorks"
EntityName="SalesOrder" />
<AssociationReference AssociationName="Sales Order by Reason Associator"
Reverse="false"
EntityNamespace="AdventureWorks"
EntityName="SalesOrder" />
<AssociationReference AssociationName="Sales Order by Reason Disassociator"
Reverse="false"
EntityNamespace="AdventureWorks"
EntityName="SalesOrder" />
</AssociationGroup>
</AssociationGroups>
For a complete BDC model sample that includes an AssociationGroup, do the following:
Download the Microsoft SharePoint 2010 SDK.
Extract "bcs sample kit.zip" from "%ProgramFiles%\Microsoft SDKs\SharePoint 2010\Samples\Business Connectivity Services" to a local folder.
In the folder where you extracted the files, locate the "BDC Models for XML Snippets" folder. This folder contains BDC model samples.