Detaches the specified Entity from the current unit of work.
            
    Namespace: 
   Mindscape.LightSpeed.ServiceModelAssembly: Mindscape.LightSpeed.ServiceModel (in Mindscape.LightSpeed.ServiceModel.dll)
Version: 4.0.0.0 (4.0.0.0)
 Syntax
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
Examples
 CopyC#
CopyC#Customer selectedForEditing = GetSelectedCustomerFromUI(); unitOfWork.Detach(selectedForEditing);





