Méthodes OrganizationServiceContext

S'applique à: CRM 2015 on-prem, CRM Online

///Public méthodes

(voir aussi Protégé méthodes)

  Nom Description
public method AddLink Adds the specified link to the set of objects the OrganizationServiceContext is tracking.
public method AddObject Adds the specified entity to the set of entities that the OrganizationServiceContext is tracking.
public method AddRelatedObject Adds a related entity to the OrganizationServiceContext and creates the link that defines the relationship between the two entities in a single request.
public method Attach Notifies the OrganizationServiceContext to start tracking the specified entity.
public method AttachLink Notifies the OrganizationServiceContext to start tracking the specified link that defines a relationship between entity objects.
public method ClearChanges Clears all tracking of entities by the OrganizationServiceContext.
public method CreateQuery Surchargé. Creates a web service Language-Integrated Query (LINQ) .NET query for the specified entity.
public method DeleteLink Changes the state of the link to deleted in the list of links being tracked by the OrganizationServiceContext.
public method DeleteObject Surchargé. Changes the state of the specified entity to be deleted in the OrganizationServiceContext.
public method Detach Surchargé. Removes the entity from the set of entities that the OrganizationServiceContext is tracking.
public method DetachLink Removes the specified link from the list of links being tracked by the OrganizationServiceContext.
public method Dispose Surchargé. Disposes of the service context.
public method Equals  (hérité de Object)
public method Execute Executes a message in the form of a request, and returns a response.
public method GetAttachedEntities Gets an enumerable collection of the entities attached to the OrganizationServiceContext.
public method GetHashCode  (hérité de Object)
public method GetType  (hérité de Object)
public method IsAttached Surchargé. Determines whether an entity or an entity relationship is attached and therefore being tracked by the OrganizationServiceContext.
public method IsDeleted Surchargé. Determines whether an entity or an entity relationship has been deleted.
public method LoadProperty Surchargé. Loads deferred content for a specified property from the web service.
public method SaveChanges Surchargé. Saves the changes that the OrganizationServiceContext is tracking to Microsoft Dynamics CRM.
public method ToString  (hérité de Object)
public method UpdateObject Surchargé. Changes the state of the specified entity in the OrganizationServiceContext to Modified.

Protégé méthodes

  Nom Description
protected method CreateQuery Surchargé. Creates a web service Language-Integrated Query (LINQ) .NET query for the specified entity.
protected method Dispose Surchargé. Disposes of the service context.
protected method Finalize Remplacé. Destructor for the OrganizationServiceContext class.
protected method MemberwiseClone  (hérité de Object)
protected method OnBeginEntityTracking Virtual (Overridable) method called when entity tracking begins.
protected method OnBeginLinkTracking Virtual (Overridable) method called when link tracking begins.
protected method OnEndEntityTracking Virtual (Overridable) method called after entity tracking ends.
protected method OnEndLinkTracking Virtual (Overridable) method called after link tracking ends.
protected method OnExecute Surchargé. Virtual (Overridable) methods called after Execute is called.
protected method OnExecuting Virtual (Overridable) method called before Execute is called.
protected method OnSaveChanges Virtual (Overridable) method called after an attempt to save data changes.
protected method OnSavingChanges Virtual (Overridable) method called before an attempt to save changes is performed.

Voir aussi

Référence

Classe OrganizationServiceContext
Espace de noms Microsoft.Xrm.Sdk.Client

Autres ressources

Create Early-Bound Entity Classes with the Code Generation Tool (CrmSvcUtil.exe)
Use the Early Bound Entity Classes for Create, Update, and Delete
Use the Early Bound Entity Classes to Add or Update Associations Between Related Records
Sample: Use the Organization Service Context

Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.