Generate a new identifier

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

Syntax

C#
Object Generate(
	ISessionImplementor session,
	Object obj
)
Visual Basic
Function Generate ( _
	session As ISessionImplementor, _
	obj As Object _
) As Object
Visual C++
Object^ Generate(
	ISessionImplementor^ session, 
	Object^ obj
)

Parameters

session
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 new identifier

See Also