Adds a related entity to the OrganizationServiceContext and creates the link that defines the relationship between the two entities in a single request. Namespace: Microsoft.Xrm.Sdk.Client
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
public void AddRelatedObject ( Entity source, Relationship relationship, Entity target )
Type: Entity. The parent entity that is being tracked by the context.
Type: Relationship. The name of the attribute or navigation property that returns the related object based on an association between the two entities.
Type: Entity. The related object that is being added.
Development PlatformsWindows Server 2008
Target PlatformsWindows Server 2008, Windows 7 (All Versions), Windows Vista (All Versions)
Send comments about this topic to Microsoft.
© 2011 Microsoft Corporation. All rights reserved.