Example #1
0
        public void AddFilter(Action <IFluentFilterExpression> definition)
        {
            var filter = new FluentFilterExpression();

            definition(filter);

            _query.Criteria.AddFilter(filter.GetFilter());
        }
Example #2
0
        public IFluentFilterExpression Where(Action <IFluentFilterExpression> definition)
        {
            var filter = new FluentFilterExpression();

            definition(filter);

            _filter.Filters.Add(filter.GetFilter());

            return(this);
        }
Example #3
0
        public IFluentLinkEntity Where(Action <IFluentFilterExpression> definition)
        {
            var filter = new FluentFilterExpression();

            definition(filter);

            _linkEntity.LinkCriteria = filter.GetFilter();

            return(this);
        }
Example #4
0
        public IFluentQuery <T> Where(Action <IFluentFilterExpression> definition)
        {
            var filter = new FluentFilterExpression();

            definition(filter);

            _query.Criteria = filter.GetFilter();

            return(this);
        }