public T FindOne(params ICriterion[] criteria) { ICriteria crit = RepositoryHelper <T> .CreateCriteriaFromArray(Session, criteria, null); return(crit.UniqueResult <T>()); }
public ICollection <T> FindAll(Order[] orders, params ICriterion[] criteria) { ICriteria crit = RepositoryHelper <T> .CreateCriteriaFromArray(Session, criteria, orders); return(crit.List <T>()); }