Performs housekeeping activity associated with saving an entity. This method is provided for use by mock implementations of IUnitOfWork and should be called by mock implementations prior to performing their save activities. It should not be called in production code, as the LightSpeed object mapper carries out the necessary housekeeping in that environment.

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

Syntax

C#
protected static bool OnMockSavingEntity(
	Entity entity
)
Visual Basic (Declaration)
Protected Shared Function OnMockSavingEntity ( _
	entity As Entity _
) As Boolean

Parameters

entity
Type: Mindscape.LightSpeed..::.Entity
The entity about to be saved.

Return Value

true if the save should proceed; false if the save should be cancelled.

See Also