What I mean is that you'll get List<object[]> probably. As you have
projections, each indice of the array that represents one row in database
will correspond to one property
result[0]=>row
result[0][0]=>First name for the first row.

If you need something that is not array, you should use result transformers,
i don't remember the name though.

Tuna Toksöz
Eternal sunshine of the open source mind.

http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike




On Tue, Sep 8, 2009 at 9:38 PM, Tuna Toksoz <[email protected]> wrote:

> The result is an array of an array.What you see is pretty normal.
> Try to debug, you'll see. You need to use a sort of DTO + Result
> Transformer.
>
> isreadonly,isfixedsize,longlength,rank etc...
>
> sounds more like Props of an array, doesn't it?
>
> Tuna Toksöz
> Eternal sunshine of the open source mind.
>
> http://devlicio.us/blogs/tuna_toksoz
> http://tunatoksoz.com
> http://twitter.com/tehlike
>
>
>
>
> On Tue, Sep 8, 2009 at 9:18 PM, olcay şeker <[email protected]> wrote:
>
>>
>> i have already use it. please check sample app and you will see the
>> result or my fault...
>>
>> On 9 Eylül, 04:01, Ayende Rahien <[email protected]> wrote:
>> > Projections.ProjectionList()
>> >
>> >
>> >
>> > On Tue, Sep 8, 2009 at 5:22 AM, olcay şeker <[email protected]>
>> wrote:
>> >
>> > >  how can i write this query  "select firstname,lastname from employees
>> > > " with ICriteria api instead of hql? i tried with projection but
>> > > failed.
>> >
>> > > session.CreateCriteria(typeof(employees)).SetProjection
>> > > (Projections.Property("firstname")).SetProjection(Projections.Property
>> > > ("lastname")).List();
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to