Exemplo n.º 1
0
        public static IMergeWhereClauseConnectionOr MergeQueriesOR(IEnumerable <IWhere> queries)
        {
            IMergeWhereClauseConnectionOr query = new MergeWhereClause();

            foreach (var q in queries)
            {
                query = query.OrQuery(q);
            }
            return(query);
        }
Exemplo n.º 2
0
        public static IMergeWhereClauseConnectionAnd MergeQueriesAND(IEnumerable <IWhere> queries)
        {
            IMergeWhereClauseConnectionAnd query = new MergeWhereClause();

            foreach (var q in queries)
            {
                query = query.AndQuery(q);
            }
            return(query);
        }