共用方式為


ObjectQuery<T>.UnionAll(ObjectQuery<T>) 方法

定義

此查詢產生器方法會建立新的查詢,其結果為此查詢的所有結果,再加上其他查詢的所有結果,包括任何重複專案 (,亦即結果不一定是唯一的) 。

public System.Data.Entity.Core.Objects.ObjectQuery<T> UnionAll (System.Data.Entity.Core.Objects.ObjectQuery<T> query);
member this.UnionAll : System.Data.Entity.Core.Objects.ObjectQuery<'T> -> System.Data.Entity.Core.Objects.ObjectQuery<'T>
Public Function UnionAll (query As ObjectQuery(Of T)) As ObjectQuery(Of T)

參數

query
ObjectQuery<T>

表示要加入之結果的查詢。

傳回

新的 ObjectQuery 實例。

例外狀況

如果查詢參數為 null。

適用於