ICriteria crit = session.CreateCriteria();
foreach (ICriteriaItem<object> param in filters)
{
crit.Add(Expression.Eq(param.PropertyName, param.FilterValue));
}
crit.SetProjection(Projections.Distinct(Projections.ProjectionList()));
-- disctinct not working can you please help me
crit.AddOrder(new Order(sortField, sortOrderAscending));
crit.SetFirstResult(pageNumber * pageSize);
crit.SetMaxResults(pageSize);
transaction.Commit();
return crit.List<IHCOSpendTable>();