@@ -259,77 +259,184 @@ public static IQueryBatch SetFlushMode(this IQueryBatch batch, FlushMode mode)
259259 return batch ;
260260 }
261261
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>
262269 public static IFutureEnumerable < TResult > AddAsFuture < TResult > ( this IQueryBatch batch , IQueryOver query )
263270 {
264271 return AddAsFuture ( batch , For < TResult > ( query ) ) ;
265272 }
266273
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>
267281 public static IFutureEnumerable < TResult > AddAsFuture < TResult > ( this IQueryBatch batch , IQueryOver < TResult > query )
268282 {
269283 return AddAsFuture ( batch , For < TResult > ( query ) ) ;
270284 }
271285
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>
272293 public static IFutureEnumerable < TResult > AddAsFuture < TResult > ( this IQueryBatch batch , ICriteria query )
273294 {
274295 return AddAsFuture ( batch , For < TResult > ( query ) ) ;
275296 }
276297
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>
277305 public static IFutureEnumerable < TResult > AddAsFuture < TResult > ( this IQueryBatch batch , DetachedCriteria query )
278306 {
279307 return AddAsFuture ( batch , For < TResult > ( query ) ) ;
280308 }
281309
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>
282317 public static IFutureEnumerable < TResult > AddAsFuture < TResult > ( this IQueryBatch batch , IQuery query )
283318 {
284319 return AddAsFuture ( batch , For < TResult > ( query ) ) ;
285320 }
286321
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>
287329 public static IFutureEnumerable < TResult > AddAsFuture < TResult > ( this IQueryBatch batch , IQueryable < TResult > query )
288330 {
289331 return AddAsFuture ( batch , For < TResult > ( query ) ) ;
290332 }
291333
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>
292341 public static IFutureEnumerable < TResult > AddAsFuture < TResult > ( this IQueryBatch batch , IQueryBatchItem < TResult > query )
293342 {
294343 batch . Add ( query ) ;
295344 return new FutureEnumerable < TResult > ( batch , query ) ;
296345 }
297346
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>
298356 public static IFutureValue < TResult > AddAsFutureValue < TSource , TResult > ( this IQueryBatch batch , IQueryable < TSource > query , Expression < Func < IQueryable < TSource > , TResult > > selector )
299357 {
300358 return AddAsFutureValue ( batch , For ( query , selector ) ) ;
301359 }
302360
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 )
304369 {
305370 return AddAsFutureValue ( batch , For ( query ) ) ;
306371 }
307372
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>
308380 public static IFutureValue < TResult > AddAsFutureValue < TResult > ( this IQueryBatch batch , ICriteria query )
309381 {
310382 return AddAsFutureValue ( batch , For < TResult > ( query ) ) ;
311383 }
312384
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>
313392 public static IFutureValue < TResult > AddAsFutureValue < TResult > ( this IQueryBatch batch , DetachedCriteria query )
314393 {
315394 return AddAsFutureValue ( batch , For < TResult > ( query ) ) ;
316395 }
317396
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>
318404 public static IFutureValue < TResult > AddAsFutureValue < TResult > ( this IQueryBatch batch , IQueryOver query )
319405 {
320406 return AddAsFutureValue ( batch , For < TResult > ( query ) ) ;
321407 }
322408
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>
323416 public static IFutureValue < TResult > AddAsFutureValue < TResult > ( this IQueryBatch batch , IQueryOver < TResult > query )
324417 {
325418 return AddAsFutureValue ( batch , For < TResult > ( query ) ) ;
326419 }
327420
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>
328428 public static IFutureValue < TResult > AddAsFutureValue < TResult > ( this IQueryBatch batch , IQuery query )
329429 {
330430 return AddAsFutureValue ( batch , For < TResult > ( query ) ) ;
331431 }
332432
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>
333440 public static IFutureValue < TResult > AddAsFutureValue < TResult > ( this IQueryBatch batch , IQueryBatchItem < TResult > query )
334441 {
335442 batch . Add ( query ) ;
0 commit comments