Generates an identifer from the value of a Property.

Namespace: NHibernate.Id
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public Object Generate(
	ISessionImplementor sessionImplementor,
	Object obj
)
Visual Basic
Public Function Generate ( _
	sessionImplementor As ISessionImplementor, _
	obj As Object _
) As Object
Visual C++
public:
virtual Object^ Generate(
	ISessionImplementor^ sessionImplementor, 
	Object^ obj
) sealed

Parameters

sessionImplementor
Type: NHibernate.Engine..::..ISessionImplementor
The ISessionImplementor this id is being generated in.
obj
Type: System..::..Object
The entity for which the id is being generated.

Return Value

The identifier value from the associated object or ShortCircuitIndicator if the session already contains obj.

Implements

IIdentifierGenerator..::..Generate(ISessionImplementor, Object)

See Also