Attaches the specified Entity to the current unit of work.
Namespace:
Mindscape.LightSpeedAssembly: Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)
Syntax
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);