You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToPipelineTranslators/JoinMethodToPipelineTranslator.cs
+26-38Lines changed: 26 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
/* Copyright 2010-present MongoDB Inc.
1
+
/* Copyright 2010-present MongoDB Inc.
2
2
*
3
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
4
* you may not use this file except in compliance with the License.
@@ -13,8 +13,6 @@
13
13
* limitations under the License.
14
14
*/
15
15
16
-
usingSystem.Collections.Generic;
17
-
usingSystem.Linq;
18
16
usingSystem.Linq.Expressions;
19
17
usingMongoDB.Bson.Serialization;
20
18
usingMongoDB.Driver.Linq.Linq3Implementation.Ast;
@@ -61,29 +59,36 @@ public static TranslatedPipeline Translate(TranslationContext context, MethodCal
because:$"the outer document type uses reserved field name(s) {string.Join(", ",conflicting.Select(n =>$"'{n}'"))} which are used internally by LeftJoin");
/// Correlates the elements of two sequences based on matching keys, preserving all outer elements
826
-
/// even when no matching inner element exists (left outer join semantics).
827
-
/// </summary>
828
-
/// <typeparam name="TOuter">The type of the elements of the first sequence.</typeparam>
829
-
/// <typeparam name="TInner">The type of the elements of the second sequence.</typeparam>
830
-
/// <typeparam name="TKey">The type of the keys returned by the key selector functions.</typeparam>
831
-
/// <typeparam name="TResult">The type of the result elements.</typeparam>
832
-
/// <param name="outer">The first sequence to join.</param>
833
-
/// <param name="inner">The collection to join to the first sequence.</param>
834
-
/// <param name="outerKeySelector">A function to extract the join key from each element of the first sequence.</param>
835
-
/// <param name="innerKeySelector">A function to extract the join key from each element of the second sequence.</param>
836
-
/// <param name="resultSelector">A function to create a result element from an outer element and a matching inner element (or null).</param>
837
-
/// <returns>
838
-
/// An <see cref="IQueryable{TResult}" /> that contains elements of type <typeparamref name="TResult" /> obtained by performing a left outer join on two sequences.
/// Correlates the elements of two sequences based on matching keys, preserving all outer elements
853
826
/// even when no matching inner element exists (left outer join semantics).
@@ -860,7 +833,7 @@ public static IQueryable<TResult> LeftJoin<TOuter, TInner, TKey, TResult>(this I
860
833
/// <param name="inner">The sequence to join to the first sequence.</param>
861
834
/// <param name="outerKeySelector">A function to extract the join key from each element of the first sequence.</param>
862
835
/// <param name="innerKeySelector">A function to extract the join key from each element of the second sequence.</param>
863
-
/// <param name="resultSelector">A function to create a result element from an outer element and a matching inner element (or null).</param>
836
+
/// <param name="resultSelector">A function to create a result element from an outer element and a matching inner element (or default if no match).</param>
864
837
/// <returns>
865
838
/// An <see cref="IQueryable{TResult}" /> that contains elements of type <typeparamref name="TResult" /> obtained by performing a left outer join on two sequences.
866
839
/// </returns>
@@ -877,7 +850,7 @@ public static IQueryable<TResult> LeftJoin<TOuter, TInner, TKey, TResult>(this I
0 commit comments