OrganizationServiceContextExtensions Class

 

Updated: January 15, 2016

Applies To: Dynamics CRM 2015

Extensions to the core OrganizationServiceContext class. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

System::Object
  Microsoft.Xrm.Client::OrganizationServiceContextExtensions

[ExtensionAttribute]
public ref class OrganizationServiceContextExtensions abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAddLink(OrganizationServiceContext^, Entity^, String^, Entity^, Nullable<EntityRole>)

Adds a link between two entity instances.

System_CAPS_pubmethodSystem_CAPS_staticAddLink<TSource, TTarget>(OrganizationServiceContext^, TSource, Expression<Func<TSource, TTarget>^>^, TTarget)

Adds a link between two entity instances.

System_CAPS_pubmethodSystem_CAPS_staticAddRelatedObject(OrganizationServiceContext^, Entity^, String^, Entity^, Nullable<EntityRole>)

System_CAPS_pubmethodSystem_CAPS_staticAddRelatedObject<TSource, TTarget>(OrganizationServiceContext^, TSource, Expression<Func<TSource, TTarget>^>^, TTarget)

System_CAPS_pubmethodSystem_CAPS_staticAddRelatedObject<TSource, TTarget>(OrganizationServiceContext^, TSource, Expression<Func<TSource, IEnumerable<TTarget>^>^>^, TTarget)

System_CAPS_pubmethodSystem_CAPS_staticAttachClone<T>(OrganizationServiceContext^, T, Boolean)

Clones an arbitrary source entity and attaches it to the context.

System_CAPS_pubmethodSystem_CAPS_staticAttachLink(OrganizationServiceContext^, Entity^, String^, Entity^, Nullable<EntityRole>)

Attaches a two entity instances.

System_CAPS_pubmethodSystem_CAPS_staticAttachLink<TSource, TTarget>(OrganizationServiceContext^, TSource, Expression<Func<TSource, TTarget>^>^, TTarget)

Attaches a two entity instances.

System_CAPS_pubmethodSystem_CAPS_staticDeleteLink(OrganizationServiceContext^, Entity^, String^, Entity^, Nullable<EntityRole>)

System_CAPS_pubmethodSystem_CAPS_staticDeleteLink<TSource, TTarget>(OrganizationServiceContext^, TSource, Expression<Func<TSource, TTarget>^>^, TTarget)

System_CAPS_pubmethodSystem_CAPS_staticDetach(OrganizationServiceContext^, IEnumerable<Entity^>^)

System_CAPS_pubmethodSystem_CAPS_staticDetachLink(OrganizationServiceContext^, Entity^, String^, Entity^, Nullable<EntityRole>)

Detaches a two entity instances.

System_CAPS_pubmethodSystem_CAPS_staticDetachLink<TSource, TTarget>(OrganizationServiceContext^, TSource, Expression<Func<TSource, TTarget>^>^, TTarget)

Detaches a two entity instances.

System_CAPS_pubmethodSystem_CAPS_staticExecute<TResponse>(OrganizationServiceContext^, OrganizationRequest^)

System_CAPS_pubmethodSystem_CAPS_staticIsAttached(OrganizationServiceContext^, Entity^, String^, Entity^, Nullable<EntityRole>)

Determines whether a relationship is attached and therefore being tracked by the OrganizationServiceContext.

System_CAPS_pubmethodSystem_CAPS_staticIsAttached<TSource, TTarget>(OrganizationServiceContext^, TSource, Expression<Func<TSource, TTarget>^>^, TTarget)

Determines whether a relationship is attached and therefore being tracked by the OrganizationServiceContext.

System_CAPS_pubmethodSystem_CAPS_staticIsAttached<TSource, TTarget>(OrganizationServiceContext^, TSource, Expression<Func<TSource, IEnumerable<TTarget>^>^>^, TTarget)

Determines whether a relationship is attached and therefore being tracked by the OrganizationServiceContext.

System_CAPS_pubmethodSystem_CAPS_staticIsDeleted(OrganizationServiceContext^, Entity^, String^, Entity^, Nullable<EntityRole>)

Determines whether a relationship has been deleted.

System_CAPS_pubmethodSystem_CAPS_staticIsDeleted<TSource, TTarget>(OrganizationServiceContext^, TSource, Expression<Func<TSource, TTarget>^>^, TTarget)

Determines whether a relationship has been deleted.

System_CAPS_pubmethodSystem_CAPS_staticLoadProperty(OrganizationServiceContext^, Entity^, String^, Nullable<EntityRole>)

Loads the related entity collection for the specified relationship.

System_CAPS_pubmethodSystem_CAPS_staticLoadProperty<TEntity>(OrganizationServiceContext^, TEntity, Expression<Func<TEntity, Object^>^>^)

Loads the related entity collection for the specified relationship.

System_CAPS_pubmethodSystem_CAPS_staticMergeClone<T>(OrganizationServiceContext^, T, Boolean)

Clones an arbitrary source entity and attaches it to the context.

System_CAPS_pubmethodSystem_CAPS_staticReAttach(OrganizationServiceContext^, Entity^)

Resets the EntityState of an entity before attaching it to the context.

System_CAPS_pubmethodSystem_CAPS_staticTryAccessCache(OrganizationServiceContext^, Action<IOrganizationServiceCache^>^)

Tries to perform an action on the underlying IOrganizationServiceCache if applicable.

System_CAPS_pubmethodSystem_CAPS_staticTryRemoveFromCache(OrganizationServiceContext^, Entity^)

Removes an entity from cache if it is applicable to the context.

System_CAPS_pubmethodSystem_CAPS_staticTryRemoveFromCache(OrganizationServiceContext^, EntityReference^)

Removes an entity from cache if it is applicable to the context.

System_CAPS_pubmethodSystem_CAPS_staticTryRemoveFromCache(OrganizationServiceContext^, OrganizationRequest^)

Removes a request/response from cache if it is applicable to the context.

System_CAPS_pubmethodSystem_CAPS_staticTryRemoveFromCache(OrganizationServiceContext^, String^)

Removes an item from cache if it is applicable to the context.

System_CAPS_pubmethodSystem_CAPS_staticTryRemoveFromCache(OrganizationServiceContext^, String^, Nullable<Guid>)

Removes an entity from cache if it is applicable to the context.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

© 2017 Microsoft. All rights reserved. Copyright

Show: