Searches and returns the first row.

Namespace: Castle.ActiveRecord
Assembly:  Castle.ActiveRecord (in Castle.ActiveRecord.dll)
Version: 1.0.3.0

Syntax

C#
public static Object FindFirst(
	Type targetType,
	DetachedCriteria criteria
)

Parameters

targetType
Type
The target type
criteria
DetachedCriteria
The criteria expression

Return Value

A targetType instance or null

See Also