다음을 통해 공유


Template: SubscriptionWithAssociation_Subscription.xml

Applies to: SharePoint Server 2010

The following is an example of a template for a subscription with an association.

<?xml version="1.0" encoding="utf-8"?>
<!-- This file defines a cache subscription. A cache subscription tells the BCS Client Runtime what data to populate in the Client Cache. -->
<!-- This file defines a subscription for a source entity, for example, Customer, which is associated with a target entity, for example, Order. -->
<!-- If your entity does not have associations or if your entity is a target entity, start with the BasicSubscription template provided in the SDK. -->
<!-- This file points to the information that is defined in the BDC Model. You may want to reference your BDC Model file when filling the values in this file. -->
<!-- Note that you also need to define a cache subscription file for the target entity.  -->
<!-- The IsCached attribute is not used in this release. -->
<!-- The default values of RefreshIntervalInMinutes are shown. You can change them to meet your needs. --> 
<Subscription LobSystemInstanceName="EnterLobSystemInstanceNameFromModel" EntityNamespace="EnterEnityNamespaceNameFromModel" EntityName="EnterSourceEntityNameFromModel" Name="EnterUniqueNameForSubscription" View="EnterSpecificFinderNameFromModel" IsCached="true" RefreshIntervalInMinutes="360" xmlns="https://schemas.microsoft.com/office/2006/03/BusinessDataCatalog">
  <Queries>
    <Query Name="EnterUniqueNameForQuery" MethodInstanceName="EnterFinderNameFromModel" DefaultDisplayName="EnterDisplayName" RefreshIntervalInMinutes="180" IsCached="true" Enabled="true" />
  </Queries>
  <Associations>
    <Association Name="EnterUniqueNameForSubscriptionAssociation" MethodInstanceName="EnterAssociationMethodInstanceNameFromModel" TargetSubscriptionName="EnterTargetSubscriptionName" TargetView="EnterSpecificFinderOfTargetEntity" LobSystemInstanceName="EnterLobSystemInstanceNameOfAssociationEntity"  RefreshIntervalInMinutes="60"/>
  </Associations>
</Subscription>