Called from Flush(). The return value determines whether the entity is updated

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

Syntax

Visual Basic (Declaration)
Function FindDirty ( _
	entity As Object, _
	id As Object, _
	currentState As Object(), _
	previousState As Object(), _
	propertyNames As String(), _
	types As IType() _
) As Integer()
C#
int[] FindDirty(
	Object entity,
	Object id,
	Object[] currentState,
	Object[] previousState,
	string[] propertyNames,
	IType[] types
)
Visual C++
array<int>^ FindDirty(
	Object^ entity, 
	Object^ id, 
	array<Object^>^ currentState, 
	array<Object^>^ previousState, 
	array<String^>^ propertyNames, 
	array<IType^>^ types
)
JavaScript
function findDirty(entity, id, currentState, previousState, propertyNames, types);

Parameters

entity
Type: System..::.Object
A persistent entity
id
Type: System..::.Object
currentState
Type: array< System..::.Object >[]()[]
previousState
Type: array< System..::.Object >[]()[]
propertyNames
Type: array< System..::.String >[]()[]
types
Type: array< NHibernate.Type..::.IType >[]()[]

Return Value

An array of dirty property indicies or nullNothingnullptra null reference (Nothing in Visual Basic) to choose default behavior

Remarks

an array of property indicies - the entity is dirty an empty array - the entity is not dirty nullNothingnullptra null reference (Nothing in Visual Basic) - use Hibernate's default dirty-checking algorithm

See Also