Export (0) Print
Expand All

OrganizationServiceContext Methods

Applies To: CRM 2015 on-prem, CRM Online

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

(see also Protected Methods)
 NameDescription
public methodAddLinkAdds the specified link to the set of objects the OrganizationServiceContext is tracking.
public methodAddObjectAdds the specified entity to the set of entities that the OrganizationServiceContext is tracking.
public methodAddRelatedObjectAdds a related entity to the OrganizationServiceContext and creates the link that defines the relationship between the two entities in a single request.
public methodAttachNotifies the OrganizationServiceContext to start tracking the specified entity.
public methodAttachLinkNotifies the OrganizationServiceContext to start tracking the specified link that defines a relationship between entity objects.
public methodClearChangesClears all tracking of entities by the OrganizationServiceContext.
public methodCreateQueryOverloaded. Creates a web service .NET Language-Integrated Query (LINQ) query for the specified entity.
public methodDeleteLinkChanges the state of the link to deleted in the list of links being tracked by the OrganizationServiceContext.
public methodDeleteObjectOverloaded. Changes the state of the specified entity to be deleted in the OrganizationServiceContext.
public methodDetachOverloaded. Removes the entity from the set of entities that the OrganizationServiceContext is tracking.
public methodDetachLinkRemoves the specified link from the list of links being tracked by the OrganizationServiceContext.
public methodDisposeOverloaded. Disposes of the service context.
public methodEquals  (inherited from Object)
public methodExecuteExecutes a message in the form of a request, and returns a response.
public methodGetAttachedEntitiesGets an enumerable collection of the entities attached to the OrganizationServiceContext.
public methodGetHashCode  (inherited from Object)
public methodGetType  (inherited from Object)
public methodIsAttachedOverloaded. Determines whether an entity or an entity relationship is attached and therefore being tracked by the OrganizationServiceContext.
public methodIsDeletedOverloaded. Determines whether an entity or an entity relationship has been deleted.
public methodLoadPropertyOverloaded. Loads deferred content for a specified property from the web service.
public methodSaveChangesOverloaded. Saves the changes that the OrganizationServiceContext is tracking to Microsoft Dynamics CRM.
public methodToString  (inherited from Object)
public methodUpdateObjectOverloaded. Changes the state of the specified entity in the OrganizationServiceContext to Modified.

 NameDescription
protected methodCreateQueryOverloaded. Creates a web service .NET Language-Integrated Query (LINQ) query for the specified entity.
protected methodDisposeOverloaded. Disposes of the service context.
protected methodFinalizeOverridden. Destructor for the OrganizationServiceContext class.
protected methodMemberwiseClone  (inherited from Object)
protected methodOnBeginEntityTrackingVirtual (Overridable) method called when entity tracking begins.
protected methodOnBeginLinkTrackingVirtual (Overridable) method called when link tracking begins.
protected methodOnEndEntityTrackingVirtual (Overridable) method called after entity tracking ends.
protected methodOnEndLinkTrackingVirtual (Overridable) method called after link tracking ends.
protected methodOnExecuteOverloaded. Virtual (Overridable) methods called after Execute is called.
protected methodOnExecutingVirtual (Overridable) method called before Execute is called.
protected methodOnSaveChangesVirtual (Overridable) method called after an attempt to save data changes.
protected methodOnSavingChangesVirtual (Overridable) method called before an attempt to save changes is performed.

Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft