Registers the specified entity as a pending delete.

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

Syntax

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

Parameters

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

Examples

CopyC#
Customer customer = unitOfWork.FindById<Customer>(301);
unitOfWork.Remove(customer);
unitOfWork.SaveChanges();

See Also