Hello to everybody!
I have what i think is a simple question, but i can't find the answer anywhere else... so i thought i would post a new topic here.
Thing is... when you make a select query with hql like
select customer.Id, customer.Name from Customer customer
it returns an object array.
I just wanted to know if there's any chance to tell NHibernate to bring information about the Property Names along with the data from the table.
For instance, if i want to populate a DropDownList with the result of this query it'd be really usefull to write something like
myDDL.DataTextField = "Id";
myDDL.DataValueField = "Name";
myDDL.DataBind();
but i can't refer to them as such, given that I have a object[]...
I would really love to skip a DataTable population... Ok, I know it doesn't make the performance decrease that much when working with small databases, but i have large ones. And customers love fast systems...
Thanks in advance for answering!!
Cheers,
Alejandro =)
|