@@ -259,77 +259,184 @@ public static IQueryBatch SetFlushMode(this IQueryBatch batch, FlushMode mode)
259
259
return batch ;
260
260
}
261
261
262
+ /// <summary>
263
+ /// Adds a query to the batch, returning it as an <see cref="IFutureEnumerable{T}"/>.
264
+ /// </summary>
265
+ /// <param name="batch">The batch.</param>
266
+ /// <param name="query">The query.</param>
267
+ /// <typeparam name="TResult">The type of the query result elements.</typeparam>
268
+ /// <returns>A future query which execution will be handled by the batch.</returns>
262
269
public static IFutureEnumerable < TResult > AddAsFuture < TResult > ( this IQueryBatch batch , IQueryOver query )
263
270
{
264
271
return AddAsFuture ( batch , For < TResult > ( query ) ) ;
265
272
}
266
273
274
+ /// <summary>
275
+ /// Adds a query to the batch, returning it as an <see cref="IFutureEnumerable{T}"/>.
276
+ /// </summary>
277
+ /// <param name="batch">The batch.</param>
278
+ /// <param name="query">The query.</param>
279
+ /// <typeparam name="TResult">The type of the query result elements.</typeparam>
280
+ /// <returns>A future query which execution will be handled by the batch.</returns>
267
281
public static IFutureEnumerable < TResult > AddAsFuture < TResult > ( this IQueryBatch batch , IQueryOver < TResult > query )
268
282
{
269
283
return AddAsFuture ( batch , For < TResult > ( query ) ) ;
270
284
}
271
285
286
+ /// <summary>
287
+ /// Adds a query to the batch, returning it as an <see cref="IFutureEnumerable{T}"/>.
288
+ /// </summary>
289
+ /// <param name="batch">The batch.</param>
290
+ /// <param name="query">The query.</param>
291
+ /// <typeparam name="TResult">The type of the query result elements.</typeparam>
292
+ /// <returns>A future query which execution will be handled by the batch.</returns>
272
293
public static IFutureEnumerable < TResult > AddAsFuture < TResult > ( this IQueryBatch batch , ICriteria query )
273
294
{
274
295
return AddAsFuture ( batch , For < TResult > ( query ) ) ;
275
296
}
276
297
298
+ /// <summary>
299
+ /// Adds a query to the batch, returning it as an <see cref="IFutureEnumerable{T}"/>.
300
+ /// </summary>
301
+ /// <param name="batch">The batch.</param>
302
+ /// <param name="query">The query.</param>
303
+ /// <typeparam name="TResult">The type of the query result elements.</typeparam>
304
+ /// <returns>A future query which execution will be handled by the batch.</returns>
277
305
public static IFutureEnumerable < TResult > AddAsFuture < TResult > ( this IQueryBatch batch , DetachedCriteria query )
278
306
{
279
307
return AddAsFuture ( batch , For < TResult > ( query ) ) ;
280
308
}
281
309
310
+ /// <summary>
311
+ /// Adds a query to the batch, returning it as an <see cref="IFutureEnumerable{T}"/>.
312
+ /// </summary>
313
+ /// <param name="batch">The batch.</param>
314
+ /// <param name="query">The query.</param>
315
+ /// <typeparam name="TResult">The type of the query result elements.</typeparam>
316
+ /// <returns>A future query which execution will be handled by the batch.</returns>
282
317
public static IFutureEnumerable < TResult > AddAsFuture < TResult > ( this IQueryBatch batch , IQuery query )
283
318
{
284
319
return AddAsFuture ( batch , For < TResult > ( query ) ) ;
285
320
}
286
321
322
+ /// <summary>
323
+ /// Adds a query to the batch, returning it as an <see cref="IFutureEnumerable{T}"/>.
324
+ /// </summary>
325
+ /// <param name="batch">The batch.</param>
326
+ /// <param name="query">The query.</param>
327
+ /// <typeparam name="TResult">The type of the query result elements.</typeparam>
328
+ /// <returns>A future query which execution will be handled by the batch.</returns>
287
329
public static IFutureEnumerable < TResult > AddAsFuture < TResult > ( this IQueryBatch batch , IQueryable < TResult > query )
288
330
{
289
331
return AddAsFuture ( batch , For < TResult > ( query ) ) ;
290
332
}
291
333
334
+ /// <summary>
335
+ /// Adds a query to the batch, returning it as an <see cref="IFutureEnumerable{T}"/>.
336
+ /// </summary>
337
+ /// <param name="batch">The batch.</param>
338
+ /// <param name="query">The query.</param>
339
+ /// <typeparam name="TResult">The type of the query result elements.</typeparam>
340
+ /// <returns>A future query which execution will be handled by the batch.</returns>
292
341
public static IFutureEnumerable < TResult > AddAsFuture < TResult > ( this IQueryBatch batch , IQueryBatchItem < TResult > query )
293
342
{
294
343
batch . Add ( query ) ;
295
344
return new FutureEnumerable < TResult > ( batch , query ) ;
296
345
}
297
346
347
+ /// <summary>
348
+ /// Adds a query to the batch, returning it as an <see cref="IFutureValue{T}"/>.
349
+ /// </summary>
350
+ /// <param name="batch">The batch.</param>
351
+ /// <param name="query">The query.</param>
352
+ /// <param name="selector">An aggregation function to apply to <paramref name="query"/>.</param>
353
+ /// <typeparam name="TSource">The type of the query elements before aggregation.</typeparam>
354
+ /// <typeparam name="TResult">The type resulting of the query result aggregation.</typeparam>
355
+ /// <returns>A future query which execution will be handled by the batch.</returns>
298
356
public static IFutureValue < TResult > AddAsFutureValue < TSource , TResult > ( this IQueryBatch batch , IQueryable < TSource > query , Expression < Func < IQueryable < TSource > , TResult > > selector )
299
357
{
300
358
return AddAsFutureValue ( batch , For ( query , selector ) ) ;
301
359
}
302
360
303
- public static IFutureValue < TSource > AddAsFutureValue < TSource > ( this IQueryBatch batch , IQueryable < TSource > query )
361
+ /// <summary>
362
+ /// Adds a query to the batch, returning it as an <see cref="IFutureValue{T}"/>.
363
+ /// </summary>
364
+ /// <param name="batch">The batch.</param>
365
+ /// <param name="query">The query.</param>
366
+ /// <typeparam name="TResult">The type of the query result elements.</typeparam>
367
+ /// <returns>A future query which execution will be handled by the batch.</returns>
368
+ public static IFutureValue < TResult > AddAsFutureValue < TResult > ( this IQueryBatch batch , IQueryable < TResult > query )
304
369
{
305
370
return AddAsFutureValue ( batch , For ( query ) ) ;
306
371
}
307
372
373
+ /// <summary>
374
+ /// Adds a query to the batch, returning it as an <see cref="IFutureValue{T}"/>.
375
+ /// </summary>
376
+ /// <param name="batch">The batch.</param>
377
+ /// <param name="query">The query.</param>
378
+ /// <typeparam name="TResult">The type of the query result elements.</typeparam>
379
+ /// <returns>A future query which execution will be handled by the batch.</returns>
308
380
public static IFutureValue < TResult > AddAsFutureValue < TResult > ( this IQueryBatch batch , ICriteria query )
309
381
{
310
382
return AddAsFutureValue ( batch , For < TResult > ( query ) ) ;
311
383
}
312
384
385
+ /// <summary>
386
+ /// Adds a query to the batch, returning it as an <see cref="IFutureValue{T}"/>.
387
+ /// </summary>
388
+ /// <param name="batch">The batch.</param>
389
+ /// <param name="query">The query.</param>
390
+ /// <typeparam name="TResult">The type of the query result elements.</typeparam>
391
+ /// <returns>A future query which execution will be handled by the batch.</returns>
313
392
public static IFutureValue < TResult > AddAsFutureValue < TResult > ( this IQueryBatch batch , DetachedCriteria query )
314
393
{
315
394
return AddAsFutureValue ( batch , For < TResult > ( query ) ) ;
316
395
}
317
396
397
+ /// <summary>
398
+ /// Adds a query to the batch, returning it as an <see cref="IFutureValue{T}"/>.
399
+ /// </summary>
400
+ /// <param name="batch">The batch.</param>
401
+ /// <param name="query">The query.</param>
402
+ /// <typeparam name="TResult">The type of the query result elements.</typeparam>
403
+ /// <returns>A future query which execution will be handled by the batch.</returns>
318
404
public static IFutureValue < TResult > AddAsFutureValue < TResult > ( this IQueryBatch batch , IQueryOver query )
319
405
{
320
406
return AddAsFutureValue ( batch , For < TResult > ( query ) ) ;
321
407
}
322
408
409
+ /// <summary>
410
+ /// Adds a query to the batch, returning it as an <see cref="IFutureValue{T}"/>.
411
+ /// </summary>
412
+ /// <param name="batch">The batch.</param>
413
+ /// <param name="query">The query.</param>
414
+ /// <typeparam name="TResult">The type of the query result elements.</typeparam>
415
+ /// <returns>A future query which execution will be handled by the batch.</returns>
323
416
public static IFutureValue < TResult > AddAsFutureValue < TResult > ( this IQueryBatch batch , IQueryOver < TResult > query )
324
417
{
325
418
return AddAsFutureValue ( batch , For < TResult > ( query ) ) ;
326
419
}
327
420
421
+ /// <summary>
422
+ /// Adds a query to the batch, returning it as an <see cref="IFutureValue{T}"/>.
423
+ /// </summary>
424
+ /// <param name="batch">The batch.</param>
425
+ /// <param name="query">The query.</param>
426
+ /// <typeparam name="TResult">The type of the query result elements.</typeparam>
427
+ /// <returns>A future query which execution will be handled by the batch.</returns>
328
428
public static IFutureValue < TResult > AddAsFutureValue < TResult > ( this IQueryBatch batch , IQuery query )
329
429
{
330
430
return AddAsFutureValue ( batch , For < TResult > ( query ) ) ;
331
431
}
332
432
433
+ /// <summary>
434
+ /// Adds a query to the batch, returning it as an <see cref="IFutureValue{T}"/>.
435
+ /// </summary>
436
+ /// <param name="batch">The batch.</param>
437
+ /// <param name="query">The query.</param>
438
+ /// <typeparam name="TResult">The type of the query result elements.</typeparam>
439
+ /// <returns>A future query which execution will be handled by the batch.</returns>
333
440
public static IFutureValue < TResult > AddAsFutureValue < TResult > ( this IQueryBatch batch , IQueryBatchItem < TResult > query )
334
441
{
335
442
batch . Add ( query ) ;
0 commit comments