Searches and returns the first row.
Namespace: Castle.ActiveRecord
Assembly: Castle.ActiveRecord (in Castle.ActiveRecord.dll)
Version: 1.0.3.0
Syntax
| C# |
|---|
protected internal static Object FindFirst( Type targetType, DetachedCriteria detachedCriteria, params Order[] orders ) |
Parameters
- targetType
- Type
The target type.
- detachedCriteria
- DetachedCriteria
The criteria.
- orders
- array<Order>[]()
The sort order - used to determine which record is the first one.
Return Value
A targetType instance or null.
See Also
ActiveRecordBase Class
Castle.ActiveRecord Namespace