OrganizationServiceContextExtensions.ReAttach Method (OrganizationServiceContext, Entity)
Applies To: Dynamics CRM 2013
Resets the EntityState of an entity before attaching it to the context.
Namespace: Microsoft.Xrm.Client
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static void ReAttach(
this OrganizationServiceContext context,
Entity entity
)
public:
[ExtensionAttribute]
static void ReAttach(
OrganizationServiceContext^ context,
Entity^ entity
)
static member ReAttach :
context:OrganizationServiceContext *
entity:Entity -> unit
<ExtensionAttribute>
Public Shared Sub ReAttach (
context As OrganizationServiceContext,
entity As Entity
)
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextType: OrganizationServiceContext. The service context.
entity
Type: Microsoft.Xrm.Sdk.EntityType: Entity. The entity instance
See Also
EntityState
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client Namespace
Developer extensions for Microsoft Dynamics CRM 2013
Attach entities to the context (Dynamics CRM 2013)
Return to top