As the method name say ".List()"does return a list. Is an IEnumerable<KeyValuePair<Tk,TV>> viable for your needs ?
2009/9/9 reach4thelasers <[email protected]> > > I have a basic HQL Query which returns a number of CountryIDs and > Country Names: > > select country.ID,country.Name from Country country order by > country.Name > > this works find but returns an array of Objects when I run > hqlQuery.List(). > > Is there an easy way to get NHibernate to return a dictionary. I > would prefer not to iterate through the results and manually make a > dictionary as I will be using the same technique for Cities - which > will be returning very large collections. > > > Any assistance greatly appreciated! > > > > -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
