/// <summary>
 /// This query-builder method creates a new query whose results are all of
 /// the results of this query, plus all of the results of the other query,
 /// including any duplicates (i.e., results are not necessarily unique).
 /// </summary>
 /// <param name="query"> A query representing the results to add. </param>
 /// <returns> a new ObjectQuery instance. </returns>
 /// <exception cref="T:System.ArgumentNullException">If the query parameter is null.</exception>
 public ObjectQuery <T> UnionAll(ObjectQuery <T> query)
 {
     Check.NotNull <ObjectQuery <T> >(query, nameof(query));
     return(new ObjectQuery <T>(EntitySqlQueryBuilder.UnionAll(this.QueryState, query.QueryState)));
 }
Beispiel #2
0
        /// <summary>
        /// This query-builder method creates a new query whose results are all of
        /// the results of this query, plus all of the results of the other query,
        /// including any duplicates (i.e., results are not necessarily unique).
        /// </summary>
        /// <param name="query"> A query representing the results to add. </param>
        /// <returns> a new ObjectQuery instance. </returns>
        /// <exception cref="ArgumentNullException">If the query parameter is null.</exception>
        public ObjectQuery <T> UnionAll(ObjectQuery <T> query)
        {
            Check.NotNull(query, "query");

            return(new ObjectQuery <T>(EntitySqlQueryBuilder.UnionAll(QueryState, query.QueryState)));
        }
        /// <summary>
        ///   This query-builder method creates a new query whose results are all of
        ///   the results of this query, plus all of the results of the other query,
        ///   including any duplicates (i.e., results are not necessarily unique).
        /// </summary>
        /// <param name="query">
        ///   A query representing the results to add.
        /// </param>
        /// <returns>
        ///   a new ObjectQuery instance.
        /// </returns>
        /// <exception cref="ArgumentNullException">
        ///   If the query parameter is null.
        /// </exception>
        public ObjectQuery <T> UnionAll(ObjectQuery <T> query)
        {
            EntityUtil.CheckArgumentNull(query, "query");

            return(new ObjectQuery <T>(EntitySqlQueryBuilder.UnionAll(this.QueryState, query.QueryState)));
        }