private IEnumerable <T> ResolveEnities() { IPredicateGroup predicate = QueryBuilder <T> .FromExpression(_expression); IPredicateGroup p = predicate?.Predicates == null ? null : predicate; return(_session.GetList <T>(p, _sort, _session.Transaction, _timeout, false, _take, _nolock)); }
public virtual IEntityBuilder <T> Query(Expression <Func <T, bool> > predicate) { return(new EntityBuilder <T>(() => { IDapperSession session = GetCurrentSession(); return session.GetList <T>(QueryBuilder <T> .FromExpression(predicate), null, session.Transaction); })); }