Prepares the save call using the given requested id.

Namespace: NHibernate.Event.Default
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
protected virtual Object SaveWithRequestedId(
	Object entity,
	Object requestedId,
	string entityName,
	Object anything,
	IEventSource source
)
Visual Basic
Protected Overridable Function SaveWithRequestedId ( _
	entity As Object, _
	requestedId As Object, _
	entityName As String, _
	anything As Object, _
	source As IEventSource _
) As Object
Visual C++
protected:
virtual Object^ SaveWithRequestedId(
	Object^ entity, 
	Object^ requestedId, 
	String^ entityName, 
	Object^ anything, 
	IEventSource^ source
)

Parameters

entity
Type: System..::..Object
The entity to be saved.
requestedId
Type: System..::..Object
The id to which to associate the entity.
entityName
Type: System..::..String
The name of the entity being saved.
anything
Type: System..::..Object
Generally cascade-specific information.
source
Type: NHibernate.Event..::..IEventSource
The session which is the source of this save event.

Return Value

The id used to save the entity.

See Also