Generate a Int16, Int32, or Int64 for the identifier by selecting and updating a value in a table.

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

Syntax

C#
public virtual Object Generate(
	ISessionImplementor session,
	Object obj
)
Visual Basic
Public Overridable Function Generate ( _
	session As ISessionImplementor, _
	obj As Object _
) As Object
Visual C++
public:
virtual 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 as a Int16, Int32, or Int64.

Implements

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

See Also