public ProjT ReportOne <ProjT>(ProjectionList projectionList) { ICriteria crit = RepositoryHelper <T> .GetExecutableCriteria(Session, null, null); return(DoReportOne <ProjT>(crit, projectionList)); }
public T FindOne(params ICriterion[] criteria) { ICriteria crit = RepositoryHelper <T> .CreateCriteriaFromArray(Session, criteria, null); return(crit.UniqueResult <T>()); }
public T FindOne(DetachedCriteria criteria) { ICriteria crit = RepositoryHelper <T> .GetExecutableCriteria(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>()); }