EntityExtensions Class

 

Updated: January 15, 2016

Applies To: Dynamics CRM 2015

Extensions to the core Entity class. (Developer Extensions)

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

System::Object
  Microsoft.Xrm.Client::EntityExtensions

[ExtensionAttribute]
public ref class EntityExtensions abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAssertEntityName(Entity^, array<String^>^)

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

System_CAPS_pubmethodSystem_CAPS_staticClone(Entity^, Boolean)

Deep clones an instance of the Entity class.

System_CAPS_pubmethodSystem_CAPS_staticClone(EntityCollection^, Boolean)

Deep clones an instance of the Entity class.

System_CAPS_pubmethodSystem_CAPS_staticGetAttributeCollectionValue<T>(Entity^, String^)

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

System_CAPS_pubmethodSystem_CAPS_staticGetAttributeValue(Entity^, String^)

Retrieves the value of the attribute.

System_CAPS_pubmethodSystem_CAPS_staticGetAttributeValue<T>(Entity^, String^)

Retrieves the value of an attribute.

System_CAPS_pubmethodSystem_CAPS_staticGetEntityReferenceValue<T>(Entity^, String^)

Retrieves attribute values for EntityReference attributes.

System_CAPS_pubmethodSystem_CAPS_staticGetFormattedAttributeValue(Entity^, String^)

Retrieves a formatted attribute value.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntities(Entity^, OrganizationServiceContext^, Relationship^)

Retrieves the collection of related entities for a specific relationship.

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

Retrieves the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntities<TEntity>(Entity^, Relationship^)

Retrieves the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntities<TEntity>(Entity^, String^, Nullable<EntityRole>)

Retrieves the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntities<TEntity, TResult>(TEntity, OrganizationServiceContext^, Expression<Func<TEntity, IEnumerable<TResult>^>^>^)

Retrieves the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntities<TEntity, TResult>(Entity^, Expression<Func<TEntity, IEnumerable<TResult>^>^>^)

Retrieves the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntity(Entity^, OrganizationServiceContext^, Relationship^)

Retrieves the related entity for a specific relationship.

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

Retrieves the related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntity<TEntity>(Entity^, Relationship^)

Retrieves the related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntity<TEntity>(Entity^, String^, Nullable<EntityRole>)

Retrieves the related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntity<TEntity, TResult>(TEntity, Expression<Func<TEntity, TResult>^>^)

Retrieves the related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntity<TEntity, TResult>(TEntity, OrganizationServiceContext^, Expression<Func<TEntity, TResult>^>^)

Retrieves the related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticSetAttributeCollectionValue<T>(Entity^, String^, IEnumerable<T>^)

Modifies the value of a sequence attribute.

System_CAPS_pubmethodSystem_CAPS_staticSetAttributeValue(Entity^, String^, Object^)

Modifies the value of an attribute.

System_CAPS_pubmethodSystem_CAPS_staticSetAttributeValue(Entity^, String^, String^, Object^)

Modifies the value of an attribute.

System_CAPS_pubmethodSystem_CAPS_staticSetAttributeValue<T>(Entity^, String^, Object^)

Modifies the value of an attribute.

System_CAPS_pubmethodSystem_CAPS_staticSetAttributeValue<T>(Entity^, String^, String^, Object^)

Modifies the value of an attribute.

System_CAPS_pubmethodSystem_CAPS_staticSetRelatedEntities<TEntity>(Entity^, Relationship^, IEnumerable<TEntity>^)

Modifies the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticSetRelatedEntities<TEntity>(Entity^, String^, IEnumerable<TEntity>^)

Modifies the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticSetRelatedEntities<TEntity>(Entity^, String^, Nullable<EntityRole>, IEnumerable<TEntity>^)

Modifies the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticSetRelatedEntities<TEntity, TResult>(TEntity, Expression<Func<TEntity, IEnumerable<TResult>^>^>^, IEnumerable<TResult>^)

Modifies the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticSetRelatedEntity<TEntity>(Entity^, Relationship^, TEntity)

Modifies a related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticSetRelatedEntity<TEntity>(Entity^, String^, TEntity)

Modifies a related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticSetRelatedEntity<TEntity>(Entity^, String^, Nullable<EntityRole>, TEntity)

Modifies a related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticSetRelatedEntity<TEntity, TResult>(TEntity, Expression<Func<TEntity, TResult>^>^, TResult)

Modifies a related entity for a specific relationship.

Extensions to the core Entity class.

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: