Determine if any of the given field values are dirty, returning an array containing indices of the dirty fields.

If it is determined that no fields are dirty, null is returned.

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

Syntax

C#
public static int[] FindDirty(
	StandardProperty[] properties,
	Object[] currentState,
	Object[] previousState,
	bool[][] includeColumns,
	bool anyUninitializedProperties,
	ISessionImplementor session
)
Visual Basic
Public Shared Function FindDirty ( _
	properties As StandardProperty(), _
	currentState As Object(), _
	previousState As Object(), _
	includeColumns As Boolean()(), _
	anyUninitializedProperties As Boolean, _
	session As ISessionImplementor _
) As Integer()
Visual C++
public:
static array<int>^ FindDirty(
	array<StandardProperty^>^ properties, 
	array<Object^>^ currentState, 
	array<Object^>^ previousState, 
	array<array<bool>^>^ includeColumns, 
	bool anyUninitializedProperties, 
	ISessionImplementor^ session
)

Parameters

properties
Type: array<NHibernate.Tuple..::..StandardProperty>[]()[][]
The property definitions
currentState
Type: array<System..::..Object>[]()[][]
The current state of the entity
previousState
Type: array<System..::..Object>[]()[][]
The baseline state of the entity
includeColumns
Type: array<array<System..::..Boolean>[]()[][]>[]()[][]
Columns to be included in the dirty checking, per property
anyUninitializedProperties
Type: System..::..Boolean
Does the entity currently hold any uninitialized property values?
session
Type: NHibernate.Engine..::..ISessionImplementor
The session from which the dirty check request originated.

Return Value

Array containing indices of the dirty properties, or null if no properties considered dirty.

See Also