@@ -103,7 +103,7 @@ public static IAggregateFluent<BsonDocument> Lookup<TResult>(this IAggregateFlue
103
103
/// Appends a lookup stage to the pipeline.
104
104
/// </summary>
105
105
/// <typeparam name="TResult">The type of the result.</typeparam>
106
- /// <typeparam name="TForeignCollection ">The type of the foreign collection.</typeparam>
106
+ /// <typeparam name="TForeignDocument ">The type of the foreign collection.</typeparam>
107
107
/// <typeparam name="TNewResult">The type of the new result.</typeparam>
108
108
/// <param name="aggregate">The aggregate.</param>
109
109
/// <param name="foreignCollection">The foreign collection.</param>
@@ -112,20 +112,20 @@ public static IAggregateFluent<BsonDocument> Lookup<TResult>(this IAggregateFlue
112
112
/// <param name="as">The field in the result to place the foreign matches.</param>
113
113
/// <param name="options">The options.</param>
114
114
/// <returns>The fluent aggregate interface.</returns>
115
- public static IAggregateFluent < TNewResult > Lookup < TResult , TForeignCollection , TNewResult > ( this IAggregateFluent < TResult > aggregate ,
116
- IMongoCollection < TForeignCollection > foreignCollection ,
115
+ public static IAggregateFluent < TNewResult > Lookup < TResult , TForeignDocument , TNewResult > ( this IAggregateFluent < TResult > aggregate ,
116
+ IMongoCollection < TForeignDocument > foreignCollection ,
117
117
Expression < Func < TResult , object > > localField ,
118
- Expression < Func < TForeignCollection , object > > foreignField ,
118
+ Expression < Func < TForeignDocument , object > > foreignField ,
119
119
Expression < Func < TNewResult , object > > @as ,
120
- AggregateLookupOptions < TForeignCollection , TNewResult > options = null )
120
+ AggregateLookupOptions < TForeignDocument , TNewResult > options = null )
121
121
{
122
122
Ensure . IsNotNull ( aggregate , nameof ( aggregate ) ) ;
123
123
Ensure . IsNotNull ( foreignCollection , nameof ( foreignCollection ) ) ;
124
124
Ensure . IsNotNull ( localField , nameof ( localField ) ) ;
125
125
Ensure . IsNotNull ( foreignField , nameof ( foreignField ) ) ;
126
126
Ensure . IsNotNull ( @as , nameof ( @as ) ) ;
127
127
128
- options = options ?? new AggregateLookupOptions < TForeignCollection , TNewResult > ( ) ;
128
+ options = options ?? new AggregateLookupOptions < TForeignDocument , TNewResult > ( ) ;
129
129
if ( options . ForeignSerializer == null )
130
130
{
131
131
options . ForeignSerializer = foreignCollection . DocumentSerializer ;
@@ -134,7 +134,7 @@ public static IAggregateFluent<TNewResult> Lookup<TResult, TForeignCollection, T
134
134
return aggregate . Lookup (
135
135
foreignCollection . CollectionNamespace . CollectionName ,
136
136
new ExpressionFieldDefinition < TResult > ( localField ) ,
137
- new ExpressionFieldDefinition < TForeignCollection > ( foreignField ) ,
137
+ new ExpressionFieldDefinition < TForeignDocument > ( foreignField ) ,
138
138
new ExpressionFieldDefinition < TNewResult > ( @as ) ,
139
139
options ) ;
140
140
}
0 commit comments