Registers the specified entity as a pending insert.

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

Syntax

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

Parameters

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

Examples

CopyC#
Customer customer = new Customer("S Baldrick");
unitOfWork.Add(customer);
unitOfWork.SaveChanges();

See Also