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

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

Syntax

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

Parameters

entity
Type: System..::..Object
A persistent entity
id
Type: System..::..Object

[Missing <param name="id"/> documentation for "M:NHibernate.IInterceptor.FindDirty(System.Object,System.Object,System.Object[],System.Object[],System.String[],NHibernate.Type.IType[])"]

currentState
Type: array<System..::..Object>[]()[][]

[Missing <param name="currentState"/> documentation for "M:NHibernate.IInterceptor.FindDirty(System.Object,System.Object,System.Object[],System.Object[],System.String[],NHibernate.Type.IType[])"]

previousState
Type: array<System..::..Object>[]()[][]

[Missing <param name="previousState"/> documentation for "M:NHibernate.IInterceptor.FindDirty(System.Object,System.Object,System.Object[],System.Object[],System.String[],NHibernate.Type.IType[])"]

propertyNames
Type: array<System..::..String>[]()[][]

[Missing <param name="propertyNames"/> documentation for "M:NHibernate.IInterceptor.FindDirty(System.Object,System.Object,System.Object[],System.Object[],System.String[],NHibernate.Type.IType[])"]

types
Type: array<NHibernate.Type..::..IType>[]()[][]

[Missing <param name="types"/> documentation for "M:NHibernate.IInterceptor.FindDirty(System.Object,System.Object,System.Object[],System.Object[],System.String[],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 dirtyan empty array - the entity is not dirtynullNothingnullptra null reference (Nothing in Visual Basic) - use Hibernate's default dirty-checking algorithm

See Also