Compartilhar via


EntityExtensions Class

 

Applies To: Dynamics CRM 2013

Extensions to the core Entity class. (Developer Extensions)

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

Inheritance Hierarchy

System.Object
  Microsoft.Xrm.Client.EntityExtensions

Syntax

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

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static AssertEntityName(Entity, String[])

Verifies that the logical name of an entity is the expected name.

System_CAPS_pubmethodSystem_CAPS_static Clone(Entity, Boolean)

Deep clones an instance of the Entity class.

System_CAPS_pubmethodSystem_CAPS_static Clone(EntityCollection, Boolean)

Deep clones an instance of the Entity class.

System_CAPS_pubmethodSystem_CAPS_static GetAttributeCollectionValue<T>(Entity, String)

Gets the attribute collection for a specific attribute of an entity.

System_CAPS_pubmethodSystem_CAPS_static GetAttributeValue(Entity, String)

Retrieves the value of the attribute.

System_CAPS_pubmethodSystem_CAPS_static GetAttributeValue<T>(Entity, String)

Retrieves the value of an attribute.

System_CAPS_pubmethodSystem_CAPS_static GetEntityReferenceValue<T>(Entity, String)

Retrieves attribute values for EntityReference attributes.

System_CAPS_pubmethodSystem_CAPS_static GetFormattedAttributeValue(Entity, String)

Retrieves a formatted attribute value.

System_CAPS_pubmethodSystem_CAPS_static GetRelatedEntities(Entity, OrganizationServiceContext, Relationship)

Retrieves the collection of related entities for a specific relationship.

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

Retrieves the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_static GetRelatedEntities<TEntity>(Entity, Relationship)

Retrieves the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_static GetRelatedEntities<TEntity>(Entity, String, Nullable<EntityRole>)

Retrieves the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_static GetRelatedEntities<TEntity, TResult>(TEntity, OrganizationServiceContext, Expression<Func<TEntity, IEnumerable<TResult>>>)

Retrieves the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_static GetRelatedEntities<TEntity, TResult>(Entity, Expression<Func<TEntity, IEnumerable<TResult>>>)

Retrieves the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_static GetRelatedEntity(Entity, OrganizationServiceContext, Relationship)

Retrieves the related entity for a specific relationship.

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

Retrieves the related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_static GetRelatedEntity<TEntity>(Entity, Relationship)

Retrieves the related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_static GetRelatedEntity<TEntity>(Entity, String, Nullable<EntityRole>)

Retrieves the related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_static GetRelatedEntity<TEntity, TResult>(TEntity, Expression<Func<TEntity, TResult>>)

Retrieves the related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_static GetRelatedEntity<TEntity, TResult>(TEntity, OrganizationServiceContext, Expression<Func<TEntity, TResult>>)

Retrieves the related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_static SetAttributeCollectionValue<T>(Entity, String, IEnumerable<T>)

Modifies the value of a sequence attribute.

System_CAPS_pubmethodSystem_CAPS_static SetAttributeValue(Entity, String, Object)

Modifies the value of an attribute.

System_CAPS_pubmethodSystem_CAPS_static SetAttributeValue(Entity, String, String, Object)

Modifies the value of an attribute.

System_CAPS_pubmethodSystem_CAPS_static SetAttributeValue<T>(Entity, String, Object)

Modifies the value of an attribute.

System_CAPS_pubmethodSystem_CAPS_static SetAttributeValue<T>(Entity, String, String, Object)

Modifies the value of an attribute.

System_CAPS_pubmethodSystem_CAPS_static SetRelatedEntities<TEntity>(Entity, Relationship, IEnumerable<TEntity>)

Modifies the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_static SetRelatedEntities<TEntity>(Entity, String, IEnumerable<TEntity>)

Modifies the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_static SetRelatedEntities<TEntity>(Entity, String, Nullable<EntityRole>, IEnumerable<TEntity>)

Modifies the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_static SetRelatedEntities<TEntity, TResult>(TEntity, Expression<Func<TEntity, IEnumerable<TResult>>>, IEnumerable<TResult>)

Modifies the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_static SetRelatedEntity<TEntity>(Entity, Relationship, TEntity)

Modifies a related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_static SetRelatedEntity<TEntity>(Entity, String, TEntity)

Modifies a related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_static SetRelatedEntity<TEntity>(Entity, String, Nullable<EntityRole>, TEntity)

Modifies a related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_static SetRelatedEntity<TEntity, TResult>(TEntity, Expression<Func<TEntity, TResult>>, TResult)

Modifies a related entity for a specific relationship.

Remarks

Extensions to the core Entity class.

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

Microsoft.Xrm.Client Namespace
Developer extensions for Microsoft Dynamics CRM 2013

Return to top