The IdentityGenerator for autoincrement/identity key generation.

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

Syntax

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

Parameters

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

Return Value

IdentityColumnIndicator Indicates to the Session that identity (i.e. identity/autoincrement column) key generation should be used.

Implements

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

See Also