예제 #1
0
        public void AddCondition(Action <IFluentConditionExpression> definition)
        {
            var condition = new FluentConditionExpression();

            definition(condition);

            _query.Criteria.AddCondition(condition.GetCondition());
        }
예제 #2
0
        public IFluentFilterExpression Attribute(Action <IFluentConditionExpression> definition)
        {
            var condition = new FluentConditionExpression();

            definition(condition);

            _filter.Conditions.Add(condition.GetCondition());

            return(this);
        }