Ejemplo n.º 1
0
        public static QueryBodySyntax QueryBody(SelectOrGroupClauseSyntax selectOrGroup = null)
        {
            var result = new QueryBodySyntax();

            result.SelectOrGroup = selectOrGroup;

            return result;
        }
Ejemplo n.º 2
0
        public static QueryBodySyntax QueryBody(IEnumerable<QueryClauseSyntax> clauses = null, SelectOrGroupClauseSyntax selectOrGroup = null, QueryContinuationSyntax continuation = null)
        {
            var result = new QueryBodySyntax();

            if (clauses != null)
                result.Clauses.AddRange(clauses);
            result.SelectOrGroup = selectOrGroup;
            result.Continuation = continuation;

            return result;
        }