Hi, I have simple HQL query:
var list = OpenSession()
.CreateQuery("SELECT MAX(p.price) as max_price,
COUNT(p.id) as count_all
FROM Order o left join o.Products p")
.List();
I would like to output "max_price" and "count_all" columns/projections as easy as possible.
Something like:
Console.WriteLine(list[0]["max_price"]);
Console.WriteLine(list[0]["count_all]);
Any idea?