In hql you can write 'select new myDTO(en.prop1,en.prop2,...) from MyEntity en ... you have to write the fully qualified name of the type you would use as a dto, or use the <import/> clause in mapping. Felix
On 19 Ago, 10:20, 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.
