Called when a transient entity is passed to SaveOrUpdate.

Namespace:  NHibernate
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Function IsUnsaved ( _
	entity As Object _
) As Object
C#
Object IsUnsaved(
	Object entity
)
Visual C++
Object^ IsUnsaved(
	Object^ entity
)
JavaScript
function isUnsaved(entity);

Parameters

entity
Type: System..::.Object
A transient entity

Return Value

Remarks

The return value determines if the object is saved trueTruetruetrue (True in Visual Basic) - the entity is passed to Save(), resulting in an INSERT falseFalsefalsefalse (False in Visual Basic) - the entity is passed to Update(), resulting in an UPDATE nullNothingnullptra null reference (Nothing in Visual Basic) - Hibernate uses the unsaved-value mapping to determine if the object is unsaved

See Also