Generates an id for this entity.

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

Syntax

C#
protected virtual Object GeneratedId()
Visual Basic (Declaration)
Protected Overridable Function GeneratedId As Object

Return Value

The generated id for this entity.

Remarks

The default implementation of this method uses the IdentityMethod specified by the LightSpeedContext or TableAttribute. You should not normally override this method. If you do override this method, ensure that the returned id is of the correct type, and that the generated id is unique. If the generated id is not unique then this will cause unpredictable behaviour and possible data loss.

See Also