Exemple #1
0
        public T FindSingleBySpecification(IMultiCriteriaSpecification <T> specification)
        {
            var results = specification.Criteria(Session).List();

            return((T)((IList <object>)results[0]).First());
        }
Exemple #2
0
        public IList <T> FindBySpecification(IMultiCriteriaSpecification <T> specification)
        {
            var results = specification.Criteria(Session).List();

            return(ListConvert.ToGenericList <T>((IList)results[0]));
        }