Hi, I have the following code which works fine. However, I only want to return rows where eventID = 5; Where can I add criteria to this query?
tx = session.BeginTransaction();
List<Catergory> Catergories;
using (tx)
{
Catergories = (List<Catergory>)session.CreateCriteria(typeof(Catergory)).AddOrder(Order.Asc("catergoryType")).List<Catergory>();
tx.Commit();
}
return Catergories;
Any help much appreciated.