use Projections.ProjectionList Tuna Toksöz Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Mon, Sep 7, 2009 at 10:22 PM, 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 -~----------~----~----~----~------~----~------~--~---
