@@ -103,7 +103,7 @@ public static IAggregateFluent<BsonDocument> Lookup<TResult>(this IAggregateFlue
103103 /// Appends a lookup stage to the pipeline.
104104 /// </summary>
105105 /// <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>
107107 /// <typeparam name="TNewResult">The type of the new result.</typeparam>
108108 /// <param name="aggregate">The aggregate.</param>
109109 /// <param name="foreignCollection">The foreign collection.</param>
@@ -112,20 +112,20 @@ public static IAggregateFluent<BsonDocument> Lookup<TResult>(this IAggregateFlue
112112 /// <param name="as">The field in the result to place the foreign matches.</param>
113113 /// <param name="options">The options.</param>
114114 /// <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 ,
117117 Expression < Func < TResult , object > > localField ,
118- Expression < Func < TForeignCollection , object > > foreignField ,
118+ Expression < Func < TForeignDocument , object > > foreignField ,
119119 Expression < Func < TNewResult , object > > @as ,
120- AggregateLookupOptions < TForeignCollection , TNewResult > options = null )
120+ AggregateLookupOptions < TForeignDocument , TNewResult > options = null )
121121 {
122122 Ensure . IsNotNull ( aggregate , nameof ( aggregate ) ) ;
123123 Ensure . IsNotNull ( foreignCollection , nameof ( foreignCollection ) ) ;
124124 Ensure . IsNotNull ( localField , nameof ( localField ) ) ;
125125 Ensure . IsNotNull ( foreignField , nameof ( foreignField ) ) ;
126126 Ensure . IsNotNull ( @as , nameof ( @as ) ) ;
127127
128- options = options ?? new AggregateLookupOptions < TForeignCollection , TNewResult > ( ) ;
128+ options = options ?? new AggregateLookupOptions < TForeignDocument , TNewResult > ( ) ;
129129 if ( options . ForeignSerializer == null )
130130 {
131131 options . ForeignSerializer = foreignCollection . DocumentSerializer ;
@@ -134,7 +134,7 @@ public static IAggregateFluent<TNewResult> Lookup<TResult, TForeignCollection, T
134134 return aggregate . Lookup (
135135 foreignCollection . CollectionNamespace . CollectionName ,
136136 new ExpressionFieldDefinition < TResult > ( localField ) ,
137- new ExpressionFieldDefinition < TForeignCollection > ( foreignField ) ,
137+ new ExpressionFieldDefinition < TForeignDocument > ( foreignField ) ,
138138 new ExpressionFieldDefinition < TNewResult > ( @as ) ,
139139 options ) ;
140140 }
0 commit comments