Converts the results stored in an IList to an
strongly-typed array.
Namespace: Castle.ActiveRecord
Assembly: Castle.ActiveRecord (in Castle.ActiveRecord.dll)
Version: 1.0.3.0
Syntax
| C# |
|---|
[ObsoleteAttribute("Use SupportingUtils.BuildArray directly")] protected Array GetResultsArray( Type t, IList list, int entityIndex, bool distinct ) |
Parameters
- t
- Type
The type of the new array
- list
- IList
The source list
- entityIndex
- Int32
If the HQL clause selects more than one field, or a join is performed without using fetch join, the contents of the result list will be of type object[]. Specify which index in this array should be used to compose the new result array. Use -1 to ignore this parameter.
- distinct
- Boolean
If true, only distinct results will be inserted in the array
Return Value
The strongly-typed array
See Also
ActiveRecordBaseQuery Class
Castle.ActiveRecord Namespace