예제 #1
0
        private ILeftHandSideExpression ForAll <TFact>(Expression <Func <TFact, bool> > baseCondition, params Expression <Func <TFact, bool> >[] conditions)
        {
            var forallBuilder = _groupBuilder.ForAll();

            var basePatternBuilder = forallBuilder.BasePattern(typeof(TFact));

            basePatternBuilder.DslConditions(_groupBuilder.Declarations, baseCondition);

            var patternBuilder = forallBuilder.Pattern(typeof(TFact));

            patternBuilder.DslConditions(_groupBuilder.Declarations, conditions);
            return(this);
        }