Detaches the specified Entity from the current unit of work.

Namespace:  Mindscape.LightSpeed
Assembly:  Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
void Detach(
	Entity entity
)
Visual Basic (Declaration)
Sub Detach ( _
	entity As Entity _
)

Parameters

entity
Type: Mindscape.LightSpeed..::.Entity
The Entity to detach.

Examples

CopyC#
Customer selectedForEditing = GetSelectedCustomerFromUI();
unitOfWork.Detach(selectedForEditing);

See Also