Skip to content

EntityReference Extensions

Artem Grunin edited this page Mar 10, 2019 · 1 revision

EntityReference Extensions

Set of extension methods for Microsoft.Xrm.Sdk.EntityReference base class. At the moment just two simple but sometimes useful type conversion methods.

ToEntity

Gets the entity based on the EntityReference.

public Entity ToEntity();

ToEntity<T>

Gets the entity based on the EntityReference as the specified type.

public T ToEntity<T>() where T : Entity;