OrganizationServiceContext Methods
Updated: November 29, 2016
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
| Name | Description | |
|---|---|---|
![]() | AddLink | Adds the specified link to the set of objects the OrganizationServiceContext is tracking. |
![]() | AddObject | Adds the specified entity to the set of entities that the OrganizationServiceContext is tracking. |
![]() | AddRelatedObject | Adds a related entity to the OrganizationServiceContext and creates the link that defines the relationship between the two entities in a single request. |
![]() | Attach | Notifies the OrganizationServiceContext to start tracking the specified entity. |
![]() | AttachLink | Notifies the OrganizationServiceContext to start tracking the specified link that defines a relationship between entity objects. |
![]() | ClearChanges | Clears all tracking of entities by the OrganizationServiceContext. |
![]() | CreateQuery | Creates a web service .NET Language-Integrated Query (LINQ) query for the specified entity. |
![]() | CreateQuery | Creates a Web service .NET Language-Integrated Query (LINQ) query for the specified entity. |
![]() | CreateQuery | Creates a web service .NET Language-Integrated Query (LINQ) query for the specified entity. |
![]() | DeleteLink | Changes the state of the link to deleted in the list of links being tracked by the OrganizationServiceContext. |
![]() | DeleteObject | Changes the state of the specified entity to be deleted in the OrganizationServiceContext. |
![]() | DeleteObject | Changes the state of the specified entity to be deleted in the OrganizationServiceContext. |
![]() | Detach | Removes the entity from the set of entities that the OrganizationServiceContext is tracking. |
![]() | Detach | Removes the entity from the set of entities that the OrganizationServiceContext is tracking. |
![]() | DetachLink | Removes the specified link from the list of links being tracked by the OrganizationServiceContext. |
![]() | Dispose | Disposes of the service context. |
![]() | Dispose | Disposes of the service context. |
![]() | Equals | (Inherited from Object.) |
![]() | Execute | Executes a message in the form of a request, and returns a response. |
![]() | Finalize | Destructor for the OrganizationServiceContext class.(Overrides ObjectFinalize.) |
![]() | GetAttachedEntities | Gets an enumerable collection of the entities attached to the OrganizationServiceContext. |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | IsAttached | Determines whether an entity is attached and therefore being tracked by the OrganizationServiceContext. |
![]() | IsAttached | Determines whether an entity relationship is attached and therefore being tracked by the OrganizationServiceContext. |
![]() | IsDeleted | Determines whether an entity has been deleted. |
![]() | IsDeleted | Determines whether a relationship has been deleted. |
![]() | LoadProperty | Loads the related entity collection for the specified relationshp. |
![]() | LoadProperty | Loads deferred content for a specified property from the Web service. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | OnBeginEntityTracking | Virtual (Overridable) method called when entity tracking begins. |
![]() | OnBeginLinkTracking | Virtual (Overridable) method called when link tracking begins. |
![]() | OnEndEntityTracking | Virtual (Overridable) method called after entity tracking ends. |
![]() | OnEndLinkTracking | Virtual (Overridable) method called after link tracking ends. |
![]() | OnExecute | Virtual (Overridable) method called after Execute is called and before an exception is re-thrown. |
![]() | OnExecute | Virtual (Overridable) method called after Execute is called and before a response is returned. |
![]() | OnExecuting | Virtual (Overridable) method called before Execute is called. |
![]() | OnSaveChanges | Virtual (Overridable) method called after an attempt to save data changes. |
![]() | OnSavingChanges | Virtual (Overridable) method called before an attempt to save changes is performed. |
![]() | SaveChanges | Saves the changes that the OrganizationServiceContext is tracking to Microsoft Dynamics 365. |
![]() | SaveChanges | Saves the changes that the OrganizationServiceContext is tracking to Microsoft Dynamics 365. |
![]() | ToString | (Inherited from Object.) |
![]() | UpdateObject | Changes the state of the specified entity in the OrganizationServiceContext to Modified. |
![]() | UpdateObject | Changes the state of the specified entity in the OrganizationServiceContext to Modified. |
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright

