QueryBuilder.GroupJoin<'Outer,'Q,'Inner,'Key,'Result> 方法 (F#)
兩組選取的值與相關聯的查詢運算子會根據對應索引鍵,並將結果分組。 一般用法是 groupJoin (for y in elements2 -> key1 = key2) into group。
Namespace/Module Path:Microsoft.FSharp.Linq
組件:FSharp.Core (在 FSharp.Core.dll 中)
// Signature:
member this.GroupJoin : QuerySource<'Outer,'Q> * QuerySource<'Inner,'Q> * ('Outer -> 'Key) * ('Inner -> 'Key) * ('Outer -> seq<'Inner> -> 'Result) -> QuerySource<'Result,'Q>
// Usage:
queryBuilder.GroupJoin (outerSource, innerSource, outerKeySelector, innerKeySelector, resultSelector)
參數
outerSource
型別: QuerySource<'Outer,'Q>外部查詢。
innerSource
型別: QuerySource<'Inner,'Q>內部查詢。
outerKeySelector
型別:「不足- > "鍵指定從外部查詢關聯索引鍵的函式。
innerKeySelector
型別:「內部- > "鍵指定從內部查詢的相互關聯索引鍵的函式。
resultSelector
型別:「不足- > 順序< " Inner> - > ' Result傳回作業結果的函式。
傳回值
查詢的結果。
備註
如需詳細資訊和範例,請參閱 查詢運算式 (F#)。
平台
Windows 8 中, Windows 7, Windows Server 2012 上, Windows Server 2008 R2
版本資訊
F# 核心程式庫版本
支援版本:4.0,可攜式執行檔 (PE)。