|
8 | 8 | namespace DevExtreme.AspNet.Data { |
9 | 9 |
|
10 | 10 | /// <summary> |
11 | | - /// Provides static methods for loading data from collections that implement the IEnumerable<T> or IQueryable<T> interface. |
| 11 | + /// Provides static methods for loading data from collections that implement the |
| 12 | + /// <see cref="System.Collections.Generic.IEnumerable{T}"/> or <see cref="System.Linq.IQueryable{T}"/> interface. |
12 | 13 | /// </summary> |
13 | 14 | public class DataSourceLoader { |
14 | 15 |
|
15 | 16 | /// <summary> |
16 | | - /// Loads data from a collection that implements the IEnumerable<T> interface. |
| 17 | + /// Loads data from a collection that implements the <see cref="System.Collections.Generic.IEnumerable{T}"/> interface. |
17 | 18 | /// </summary> |
18 | 19 | /// <typeparam name="T">The type of objects in the collection.</typeparam> |
19 | | - /// <param name="source">A collection that implements the IEnumerable<T> interface.</param> |
| 20 | + /// <param name="source">A collection that implements the <see cref="System.Collections.Generic.IEnumerable{T}"/> interface.</param> |
20 | 21 | /// <param name="options">Data processing settings when loading data.</param> |
21 | 22 | /// <returns>The load result.</returns> |
22 | 23 | public static LoadResult Load<T>(IEnumerable<T> source, DataSourceLoadOptionsBase options) { |
23 | 24 | return Load(source.AsQueryable(), options); |
24 | 25 | } |
25 | 26 |
|
26 | 27 | /// <summary> |
27 | | - /// Loads data from a collection that implements the IQueryable<T> interface. |
| 28 | + /// Loads data from a collection that implements the <see cref="System.Linq.IQueryable{T}"/> interface. |
28 | 29 | /// </summary> |
29 | 30 | /// <typeparam name="T">The type of objects in the collection.</typeparam> |
30 | | - /// <param name="source">A collection that implements the IQueryable<T> interface.</param> |
| 31 | + /// <param name="source">A collection that implements the <see cref="System.Linq.IQueryable{T}"/> interface.</param> |
31 | 32 | /// <param name="options">Data processing settings when loading data.</param> |
32 | 33 | /// <returns>The load result.</returns> |
33 | 34 | public static LoadResult Load<T>(IQueryable<T> source, DataSourceLoadOptionsBase options) { |
34 | 35 | return LoadAsync(source, options, CancellationToken.None, true).GetAwaiter().GetResult(); |
35 | 36 | } |
36 | 37 |
|
| 38 | + /// <summary> |
| 39 | + /// Asynchronously loads data from a collection that implements the <see cref="System.Linq.IQueryable{T}"/> interface. |
| 40 | + /// </summary> |
| 41 | + /// <typeparam name="T">The type of objects in the collection.</typeparam> |
| 42 | + /// <param name="source">A collection that implements the <see cref="System.Linq.IQueryable{T}"/> interface.</param> |
| 43 | + /// <param name="options">Data processing settings when loading data.</param> |
| 44 | + /// <param name="cancellationToken">A <see cref="System.Threading.CancellationToken"/> object that delivers a cancellation notice to the running operation.</param> |
| 45 | + /// <returns> |
| 46 | + /// A <see cref="System.Threading.Tasks.Task{TResult}"/> object that represents the asynchronous operation. |
| 47 | + /// The task result contains the load result. |
| 48 | + /// </returns> |
37 | 49 | public static Task<LoadResult> LoadAsync<T>(IQueryable<T> source, DataSourceLoadOptionsBase options, CancellationToken cancellationToken = default(CancellationToken)) { |
38 | 50 | return LoadAsync(source, options, cancellationToken, false); |
39 | 51 | } |
|
0 commit comments