Searches and returns a row. If more than one is found, throws ActiveRecordException

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

Syntax

C#
protected internal static Object FindOne(
	Type targetType,
	DetachedCriteria criteria
)

Parameters

targetType
Type
The target type
criteria
DetachedCriteria
The criteria

Return Value

A targetType instance or null

See Also