Perform a select to retrieve the values of any generated properties back from the database, injecting these generated values into the given entity as well as writing this state to the persistence context.

Namespace: NHibernate.Persister.Entity
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
void ProcessInsertGeneratedProperties(
	Object id,
	Object entity,
	Object[] state,
	ISessionImplementor session
)
Visual Basic
Sub ProcessInsertGeneratedProperties ( _
	id As Object, _
	entity As Object, _
	state As Object(), _
	session As ISessionImplementor _
)
Visual C++
void ProcessInsertGeneratedProperties(
	Object^ id, 
	Object^ entity, 
	array<Object^>^ state, 
	ISessionImplementor^ session
)

Parameters

id
Type: System..::..Object
The entity's id value.
entity
Type: System..::..Object
The entity for which to get the state.
state
Type: array<System..::..Object>[]()[][]
The entity state (at the time of Save).
session
Type: NHibernate.Engine..::..ISessionImplementor
The session.

Remarks

Note, that because we update the persistence context here, callers need to take care that they have already written the initial snapshot to the persistence context before calling this method.

See Also