@@ -198,6 +198,21 @@ public interface IMongoCollection<TDocument>
198
198
/// <summary>
199
199
/// Counts the number of documents in the collection.
200
200
/// </summary>
201
+ /// <remarks>
202
+ /// Note: when migrating from Count to CountDocuments the following query operations must be replaced:
203
+ ///
204
+ /// <code>
205
+ /// +-------------+--------------------------------+
206
+ /// | Operator | Replacement |
207
+ /// +=============+================================+
208
+ /// | $where | $expr |
209
+ /// +-------------+--------------------------------+
210
+ /// | $near | $geoWithin with $center |
211
+ /// +-------------+--------------------------------+
212
+ /// | $nearSphere | $geoWithin with $centerSphere |
213
+ /// +-------------+--------------------------------+
214
+ /// </code>
215
+ /// </remarks>
201
216
/// <param name="filter">The filter.</param>
202
217
/// <param name="options">The options.</param>
203
218
/// <param name="cancellationToken">The cancellation token.</param>
@@ -209,6 +224,21 @@ public interface IMongoCollection<TDocument>
209
224
/// <summary>
210
225
/// Counts the number of documents in the collection.
211
226
/// </summary>
227
+ /// <remarks>
228
+ /// Note: when migrating from Count to CountDocuments the following query operations must be replaced:
229
+ ///
230
+ /// <code>
231
+ /// +-------------+--------------------------------+
232
+ /// | Operator | Replacement |
233
+ /// +=============+================================+
234
+ /// | $where | $expr |
235
+ /// +-------------+--------------------------------+
236
+ /// | $near | $geoWithin with $center |
237
+ /// +-------------+--------------------------------+
238
+ /// | $nearSphere | $geoWithin with $centerSphere |
239
+ /// +-------------+--------------------------------+
240
+ /// </code>
241
+ /// </remarks>
212
242
/// <param name="session">The session.</param>
213
243
/// <param name="filter">The filter.</param>
214
244
/// <param name="options">The options.</param>
@@ -221,6 +251,21 @@ public interface IMongoCollection<TDocument>
221
251
/// <summary>
222
252
/// Counts the number of documents in the collection.
223
253
/// </summary>
254
+ /// <remarks>
255
+ /// Note: when migrating from CountAsync to CountDocumentsAsync the following query operations must be replaced:
256
+ ///
257
+ /// <code>
258
+ /// +-------------+--------------------------------+
259
+ /// | Operator | Replacement |
260
+ /// +=============+================================+
261
+ /// | $where | $expr |
262
+ /// +-------------+--------------------------------+
263
+ /// | $near | $geoWithin with $center |
264
+ /// +-------------+--------------------------------+
265
+ /// | $nearSphere | $geoWithin with $centerSphere |
266
+ /// +-------------+--------------------------------+
267
+ /// </code>
268
+ /// </remarks>
224
269
/// <param name="filter">The filter.</param>
225
270
/// <param name="options">The options.</param>
226
271
/// <param name="cancellationToken">The cancellation token.</param>
@@ -232,6 +277,21 @@ public interface IMongoCollection<TDocument>
232
277
/// <summary>
233
278
/// Counts the number of documents in the collection.
234
279
/// </summary>
280
+ /// <remarks>
281
+ /// Note: when migrating from CountAsync to CountDocumentsAsync the following query operations must be replaced:
282
+ ///
283
+ /// <code>
284
+ /// +-------------+--------------------------------+
285
+ /// | Operator | Replacement |
286
+ /// +=============+================================+
287
+ /// | $where | $expr |
288
+ /// +-------------+--------------------------------+
289
+ /// | $near | $geoWithin with $center |
290
+ /// +-------------+--------------------------------+
291
+ /// | $nearSphere | $geoWithin with $centerSphere |
292
+ /// +-------------+--------------------------------+
293
+ /// </code>
294
+ /// </remarks>
235
295
/// <param name="session">The session.</param>
236
296
/// <param name="filter">The filter.</param>
237
297
/// <param name="options">The options.</param>
0 commit comments