Extract the generated key value from the given result set.

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

Syntax

C#
protected internal abstract Object GetResult(
	ISessionImplementor session,
	IDataReader rs,
	Object entity
)
Visual Basic
Protected Friend MustOverride Function GetResult ( _
	session As ISessionImplementor, _
	rs As IDataReader, _
	entity As Object _
) As Object
Visual C++
protected public:
virtual Object^ GetResult(
	ISessionImplementor^ session, 
	IDataReader^ rs, 
	Object^ entity
) abstract

Parameters

session
Type: NHibernate.Engine..::..ISessionImplementor
The session
rs
Type: System.Data..::..IDataReader
The result set containing the generated primay key values.
entity
Type: System..::..Object
The entity being saved.

Return Value

The generated identifier

See Also