Searches and returns the 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#
public static Object FindOne(
	Type targetType,
	params ICriterion[] criterias
)

Parameters

targetType
Type
The target type
criterias
array<ICriterion>[]()
The criteria expression

Return Value

A targetType instance or null

See Also