Пример #1
0
        public IHqlQuery Where(Action <IAliasFactory> alias, Action <IHqlExpressionFactory> predicate)
        {
            var aliasFactory = new DefaultAliasFactory(this);

            alias(aliasFactory);
            Where(aliasFactory.Current, predicate);
            return(this);
        }
Пример #2
0
        public IHqlQuery OrderBy(Action <IAliasFactory> alias, Action <IHqlSortFactory> order)
        {
            var aliasFactory = new DefaultAliasFactory(this);

            alias(aliasFactory);

            _sortings.Add(new Tuple <IAlias, Action <IHqlSortFactory> >(aliasFactory.Current, order));
            return(this);
        }