NHibernate HQL max and count values. How to access retrunded values from c# -


i trying max amount , number of records in single hql(fluent nhibernate). after how access c# code

following thing trying acheieve. please note have use createquery.

{  var maxoffer = session.createquery("select new map(  max(amount) maxamount,count(*) total) offer o").list() ; object agg = maxoffer[0]; console.writeline(((object[])(agg))[0]); console.writeline(((object[])(agg))[1]);  } 


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -