Zdieľať cez


Use the late bound entity class in code

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

In Microsoft Dynamics 365 (online & on-premises), you can use the Entity class when you work with entities. When initialized, the Entity class contains the logical name of an entity and a property-bag array of the entity’s attributes. This lets you use late binding so that you can work with types such as custom entities and custom attributes that weren’t available when your application was compiled.

The key difference between early and late binding involves type conversion. While early binding provides compile-time checking of all types so that no implicit casts occur, late binding checks types only when the object is created or an action is performed on the type. The Entity class requires types to be explicitly specified to prevent implicit casts.

See Also

Extend Microsoft Dynamics 365 on the server
Retrieve data with queries using SDK assemblies
Use the Entity class for create, update and delete
Use the Entity class to add or update associations between related records
Sample: Create, retrieve, update, and delete (late bound)
Sample: Serialize and deserialize an entity Instance

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright