Detaches the specified Entity from the current unit of work.

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

Syntax

C#
public override void Detach(
	Entity entity
)
Visual Basic (Declaration)
Public Overrides Sub Detach ( _
	entity As Entity _
)

Parameters

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

Implements

IUnitOfWork..::.Detach(Entity)
IUnitOfWork..::.Detach(Entity)

Examples

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

See Also