Generate a 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 override Object Generate(
	ISessionImplementor session,
	Object obj
)
Visual Basic
Public Overrides Function Generate ( _
	session As ISessionImplementor, _
	obj As Object _
) As Object
Visual C++
public:
virtual Object^ Generate(
	ISessionImplementor^ session, 
	Object^ obj
) override

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 Int64.

Implements

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

See Also