Partager via


OrganizationServiceContextExtensions Class

 

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)

Inheritance Hierarchy

System.Object
  Microsoft.Xrm.Client.OrganizationServiceContextExtensions

Syntax

public static class OrganizationServiceContextExtensions
[ExtensionAttribute]
public ref class OrganizationServiceContextExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
type OrganizationServiceContextExtensions = class end
<ExtensionAttribute>
Public NotInheritable Class OrganizationServiceContextExtensions

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static AddLink(OrganizationServiceContext, Entity, String, Entity, Nullable<EntityRole>)

Adds a link between two entity instances.

System_CAPS_pubmethodSystem_CAPS_static AddLink<TSource, TTarget>(OrganizationServiceContext, TSource, Expression<Func<TSource, TTarget>>, TTarget)

Adds a link between two entity instances.

System_CAPS_pubmethodSystem_CAPS_static AddRelatedObject(OrganizationServiceContext, Entity, String, Entity, Nullable<EntityRole>)

System_CAPS_pubmethodSystem_CAPS_static AddRelatedObject<TSource, TTarget>(OrganizationServiceContext, TSource, Expression<Func<TSource, TTarget>>, TTarget)

System_CAPS_pubmethodSystem_CAPS_static AddRelatedObject<TSource, TTarget>(OrganizationServiceContext, TSource, Expression<Func<TSource, IEnumerable<TTarget>>>, TTarget)

System_CAPS_pubmethodSystem_CAPS_static AttachClone<T>(OrganizationServiceContext, T, Boolean)

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

System_CAPS_pubmethodSystem_CAPS_static AttachLink(OrganizationServiceContext, Entity, String, Entity, Nullable<EntityRole>)

Attaches a two entity instances.

System_CAPS_pubmethodSystem_CAPS_static AttachLink<TSource, TTarget>(OrganizationServiceContext, TSource, Expression<Func<TSource, TTarget>>, TTarget)

Attaches a two entity instances.

System_CAPS_pubmethodSystem_CAPS_static DeleteLink(OrganizationServiceContext, Entity, String, Entity, Nullable<EntityRole>)

System_CAPS_pubmethodSystem_CAPS_static DeleteLink<TSource, TTarget>(OrganizationServiceContext, TSource, Expression<Func<TSource, TTarget>>, TTarget)

System_CAPS_pubmethodSystem_CAPS_static Detach(OrganizationServiceContext, IEnumerable<Entity>)

System_CAPS_pubmethodSystem_CAPS_static DetachLink(OrganizationServiceContext, Entity, String, Entity, Nullable<EntityRole>)

Detaches a two entity instances.

System_CAPS_pubmethodSystem_CAPS_static DetachLink<TSource, TTarget>(OrganizationServiceContext, TSource, Expression<Func<TSource, TTarget>>, TTarget)

Detaches a two entity instances.

System_CAPS_pubmethodSystem_CAPS_static Execute<TResponse>(OrganizationServiceContext, OrganizationRequest)

System_CAPS_pubmethodSystem_CAPS_static IsAttached(OrganizationServiceContext, Entity, String, Entity, Nullable<EntityRole>)

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

System_CAPS_pubmethodSystem_CAPS_static IsAttached<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_static IsAttached<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_static IsDeleted(OrganizationServiceContext, Entity, String, Entity, Nullable<EntityRole>)

Determines whether a relationship has been deleted.

System_CAPS_pubmethodSystem_CAPS_static IsDeleted<TSource, TTarget>(OrganizationServiceContext, TSource, Expression<Func<TSource, TTarget>>, TTarget)

Determines whether a relationship has been deleted.

System_CAPS_pubmethodSystem_CAPS_static LoadProperty(OrganizationServiceContext, Entity, String, Nullable<EntityRole>)

Loads the related entity collection for the specified relationship.

System_CAPS_pubmethodSystem_CAPS_static LoadProperty<TEntity>(OrganizationServiceContext, TEntity, Expression<Func<TEntity, Object>>)

Loads the related entity collection for the specified relationship.

System_CAPS_pubmethodSystem_CAPS_static MergeClone<T>(OrganizationServiceContext, T, Boolean)

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

System_CAPS_pubmethodSystem_CAPS_static ReAttach(OrganizationServiceContext, Entity)

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

System_CAPS_pubmethodSystem_CAPS_static TryAccessCache(OrganizationServiceContext, Action<IOrganizationServiceCache>)

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

System_CAPS_pubmethodSystem_CAPS_static TryRemoveFromCache(OrganizationServiceContext, Entity)

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

System_CAPS_pubmethodSystem_CAPS_static TryRemoveFromCache(OrganizationServiceContext, EntityReference)

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

System_CAPS_pubmethodSystem_CAPS_static TryRemoveFromCache(OrganizationServiceContext, OrganizationRequest)

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

System_CAPS_pubmethodSystem_CAPS_static TryRemoveFromCache(OrganizationServiceContext, String)

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

System_CAPS_pubmethodSystem_CAPS_static TryRemoveFromCache(OrganizationServiceContext, String, Nullable<Guid>)

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

Thread Safety

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

See Also

OrganizationServiceContext
Microsoft.Xrm.Client Namespace
Developer extensions for Microsoft Dynamics CRM 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright