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 NotInheritable Class EntityExtensions

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAssertEntityName(Entity, 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(Of 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(Of T)(Entity, String)

Retrieves the value of an attribute.

System_CAPS_pubmethodSystem_CAPS_staticGetEntityReferenceValue(Of 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(Of EntityRole))

Retrieves the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntities(Of TEntity)(Entity, Relationship)

Retrieves the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntities(Of TEntity)(Entity, String, Nullable(Of EntityRole))

Retrieves the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntities(Of TEntity, TResult)(TEntity, OrganizationServiceContext, Expression(Of Func(Of TEntity, IEnumerable(Of TResult))))

Retrieves the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntities(Of TEntity, TResult)(Entity, Expression(Of Func(Of TEntity, IEnumerable(Of 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(Of EntityRole))

Retrieves the related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntity(Of TEntity)(Entity, Relationship)

Retrieves the related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntity(Of TEntity)(Entity, String, Nullable(Of EntityRole))

Retrieves the related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntity(Of TEntity, TResult)(TEntity, Expression(Of Func(Of TEntity, TResult)))

Retrieves the related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticGetRelatedEntity(Of TEntity, TResult)(TEntity, OrganizationServiceContext, Expression(Of Func(Of TEntity, TResult)))

Retrieves the related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticSetAttributeCollectionValue(Of T)(Entity, String, IEnumerable(Of 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(Of T)(Entity, String, Object)

Modifies the value of an attribute.

System_CAPS_pubmethodSystem_CAPS_staticSetAttributeValue(Of T)(Entity, String, String, Object)

Modifies the value of an attribute.

System_CAPS_pubmethodSystem_CAPS_staticSetRelatedEntities(Of TEntity)(Entity, Relationship, IEnumerable(Of TEntity))

Modifies the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticSetRelatedEntities(Of TEntity)(Entity, String, IEnumerable(Of TEntity))

Modifies the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticSetRelatedEntities(Of TEntity)(Entity, String, Nullable(Of EntityRole), IEnumerable(Of TEntity))

Modifies the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticSetRelatedEntities(Of TEntity, TResult)(TEntity, Expression(Of Func(Of TEntity, IEnumerable(Of TResult))), IEnumerable(Of TResult))

Modifies the collection of related entities for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticSetRelatedEntity(Of TEntity)(Entity, Relationship, TEntity)

Modifies a related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticSetRelatedEntity(Of TEntity)(Entity, String, TEntity)

Modifies a related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticSetRelatedEntity(Of TEntity)(Entity, String, Nullable(Of EntityRole), TEntity)

Modifies a related entity for a specific relationship.

System_CAPS_pubmethodSystem_CAPS_staticSetRelatedEntity(Of TEntity, TResult)(TEntity, Expression(Of Func(Of 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: