Exemplo n.º 1
0
        private IEnumerable <string> ResolveConditionClauses(ConditionClausList mcc)
        {
            var clauses = new List <string>();

            foreach (var m in mcc)
            {
                clauses.Add(ResolveConditionClaus(m));
            }
            return(clauses);
        }
Exemplo n.º 2
0
        public ConditionBuilder AndOr(ConditionClausList mcc)
        {
            if (mcc.Count == 0)
            {
                return(this);
            }

            var conditions = ResolveConditionClauses(mcc);

            return(And($"({string.Join(" OR ", conditions)})"));
        }