"select Name, Surname from Record where x = y"

It will be returned as an Object[], which isn't as nice, but you can
do this.

You can also create a class that can accept this result, apply Aliases
to the columns, and use an AliasToBeanTransfomer.



On Aug 19, 4:20 am, osman nuri katib <[email protected]> wrote:
> In Nhibernate,can we generate Anonymus type?
>
> For example In LINQ
>
> select new
> {
> xxxx=record.Name,
> yyyy=record.Surname
>
> }
>
> How can I do this in NHibernate?

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en.

Reply via email to