Attaches the specified Entity to 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 Attach(
	Entity entity
)
Visual Basic (Declaration)
Sub Attach ( _
	entity As Entity _
)

Parameters

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

Remarks

If the entity is already attached to this unit of work, re-attaching it has no effect.

Examples

CopyC#
Country country = ReferenceData.GetCountryFromSessionState("Ruritania");
unitOfWork.Attach(country);

See Also