CrmEntity Class
Applies To: Dynamics CRM 2015
Extensions to the core Microsoft.Xrm.Sdk.Entity class. (Developer Extensions)
Namespace: Microsoft.Xrm.Client
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Inheritance Hierarchy
System.Object
Microsoft.Xrm.Sdk.Entity
Microsoft.Xrm.Client.CrmEntity
Syntax
[IgnorePropertiesAttribute(new string[] { ... })]
[DataContractAttribute(Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")]
[DataServiceKeyAttribute("Id")]
public class CrmEntity : Entity, INotifyPropertyChanging, INotifyPropertyChanged
[IgnorePropertiesAttribute(new array<String^>^ { ... })]
[DataContractAttribute(Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")]
[DataServiceKeyAttribute("Id")]
public ref class CrmEntity : Entity, INotifyPropertyChanging,
INotifyPropertyChanged
[<IgnorePropertiesAttribute([| ... |])>]
[<DataContractAttribute(Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")>]
[<DataServiceKeyAttribute("Id")>]
type CrmEntity =
class
inherit Entity
interface INotifyPropertyChanging
interface INotifyPropertyChanged
end
<IgnorePropertiesAttribute(New String() { ... })>
<DataContractAttribute(Namespace := "https://schemas.microsoft.com/xrm/2011/Contracts")>
<DataServiceKeyAttribute("Id")>
Public Class CrmEntity
Inherits Entity
Implements INotifyPropertyChanging, INotifyPropertyChanged
Constructors
Name | Description | |
---|---|---|
CrmEntity(String) | Initializes a new instance of the CrmEntity class. |
Properties
Name | Description | |
---|---|---|
Attributes | (Inherited from Entity.) |
|
EntityState | (Inherited from Entity.) |
|
ExtensionData | (Inherited from Entity.) |
|
FormattedValues | (Inherited from Entity.) |
|
Id | (Inherited from Entity.) |
|
Item[String] | (Inherited from Entity.) |
|
LogicalName | (Inherited from Entity.) |
|
RelatedEntities | (Inherited from Entity.) |
Methods
Events
Name | Description | |
---|---|---|
PropertyChanged | Occurs when an attribute or relationship is set. |
|
PropertyChanging | Occurs when an attribute or relationship is set. |
Extension Methods
Name | Description | |
---|---|---|
AssertEntityName(String[]) | Verifies that the logical name of an entity is the expected name.(Defined by EntityExtensions.) |
|
Clone(Boolean) | Overloaded. Deep clones an instance of the Entity class.(Defined by EntityExtensions.) |
|
GetAttributeValue(String) | Overloaded. Retrieves the value of the attribute.(Defined by EntityExtensions.) |
|
GetEntityReferenceValue<T>(String) | Retrieves attribute values for EntityReference attributes.(Defined by EntityExtensions.) |
|
GetRelatedEntities(OrganizationServiceContext, Relationship) | Overloaded. Retrieves the collection of related entities for a specific relationship.(Defined by EntityExtensions.) |
|
GetRelatedEntities(OrganizationServiceContext, String, Nullable<EntityRole>) | Overloaded. Retrieves the collection of related entities for a specific relationship.(Defined by EntityExtensions.) |
|
GetRelatedEntities<TEntity>(Relationship) | Overloaded. Retrieves the collection of related entities for a specific relationship.(Defined by EntityExtensions.) |
|
GetRelatedEntities<TEntity, TResult>(Expression<Func<TEntity, IEnumerable<TResult>>>) | Overloaded. Retrieves the collection of related entities for a specific relationship.(Defined by EntityExtensions.) |
|
GetRelatedEntity(OrganizationServiceContext, Relationship) | Overloaded. Retrieves the related entity for a specific relationship.(Defined by EntityExtensions.) |
|
GetRelatedEntity(OrganizationServiceContext, String, Nullable<EntityRole>) | Overloaded. Retrieves the related entity for a specific relationship.(Defined by EntityExtensions.) |
|
GetRelatedEntity<TEntity>(Relationship) | Overloaded. Retrieves the related entity for a specific relationship.(Defined by EntityExtensions.) |
|
SerializeByJson(IEnumerable<Type>) | Serialize an object using the DataContractJsonSerializer.(Defined by ObjectExtensions.) |
|
SetAttributeCollectionValue<T>(String, IEnumerable<T>) | Modifies the value of a sequence attribute.(Defined by EntityExtensions.) |
|
SetAttributeValue(String, String, Object) | Overloaded. Modifies the value of an attribute.(Defined by EntityExtensions.) |
|
SetAttributeValue<T>(String, Object) | Overloaded. Modifies the value of an attribute.(Defined by EntityExtensions.) |
|
SetRelatedEntities<TEntity>(Relationship, IEnumerable<TEntity>) | Overloaded. Modifies the collection of related entities for a specific relationship.(Defined by EntityExtensions.) |
|
SetRelatedEntities<TEntity>(String, IEnumerable<TEntity>) | Overloaded. Modifies the collection of related entities for a specific relationship.(Defined by EntityExtensions.) |
|
SetRelatedEntity<TEntity>(Relationship, TEntity) | Overloaded. Modifies a related entity for a specific relationship.(Defined by EntityExtensions.) |
|
SetRelatedEntity<TEntity>(String, TEntity) | Overloaded. Modifies a related entity for a specific relationship.(Defined by EntityExtensions.) |
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
Entity
Microsoft.Xrm.Client Namespace
Developer extensions for Microsoft Dynamics CRM 2015
Return to top
© 2017 Microsoft. All rights reserved. Copyright