>FromYourCode();

Source code quote in C#106

 16 July, 2014 at 03:02
int c = (int) App.Session.CreateCriteria(typeof(Transaction)).Add(Restrictions.Between("CreationDate", fromDateTime, toDateTime)).Add(Restrictions.Eq("SaleSession.Salesman", salesman)).Add(Restrictions.Or(Restrictions.Eq("PayMethod", "cash"), Restrictions.Eq("PayMethod", "card"))).SetProjection(Projections.Count("Id")).UniqueResult(); 

Check similar quotes

Share this quote