You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Extensions.Results.cs
+53-38Lines changed: 53 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -2,61 +2,76 @@
2
2
usingSystem.Data;
3
3
usingSystem.Data.Common;
4
4
usingSystem.Linq;
5
+
usingSystem.Threading;
5
6
usingSystem.Threading.Tasks;
6
7
7
8
namespaceOpen.Database.Extensions
8
9
{
9
10
publicstaticpartialclassExtensions
10
11
{
11
-
/// <summary>
12
-
/// Asynchronously returns all records and iteratively attempts to map the fields to type T.
13
-
/// </summary>
14
-
/// <typeparam name="T">The model type to map the values to (using reflection).</typeparam>
15
-
/// <param name="reader">The IDataReader to read results from.</param>
16
-
/// <param name="fieldMappingOverrides">An override map of field names to column names where the keys are the property names, and values are the column names.</param>
17
-
/// <returns>A task containing the list of results.</returns>
/// Asynchronously returns all records and iteratively attempts to map the fields to type T.
14
+
/// </summary>
15
+
/// <typeparam name="T">The model type to map the values to (using reflection).</typeparam>
16
+
/// <param name="reader">The IDataReader to read results from.</param>
17
+
/// <param name="fieldMappingOverrides">An override map of field names to column names where the keys are the property names, and values are the column names.</param>
/// Asynchronously returns all records and iteratively attempts to map the fields to type T.
33
-
/// </summary>
34
-
/// <typeparam name="T">The model type to map the values to (using reflection).</typeparam>
35
-
/// <param name="reader">The IDataReader to read results from.</param>
36
-
/// <param name="fieldMappingOverrides">An override map of field names to column names where the keys are the property names, and values are the column names.</param>
37
-
/// <returns>A task containing the list of results.</returns>
/// Asynchronously returns all records and iteratively attempts to map the fields to type T.
43
-
/// </summary>
44
-
/// <typeparam name="T">The model type to map the values to (using reflection).</typeparam>
45
-
/// <param name="reader">The IDataReader to read results from.</param>
46
-
/// <param name="fieldMappingOverrides">An override map of field names to column names where the keys are the property names, and values are the column names.</param>
47
-
/// <returns>A task containing the list of results.</returns>
/// Asynchronously returns all records and iteratively attempts to map the fields to type T.
36
+
/// </summary>
37
+
/// <typeparam name="T">The model type to map the values to (using reflection).</typeparam>
38
+
/// <param name="reader">The IDataReader to read results from.</param>
39
+
/// <param name="fieldMappingOverrides">An override map of field names to column names where the keys are the property names, and values are the column names.</param>
/// Asynchronously returns all records and iteratively attempts to map the fields to type T.
47
+
/// </summary>
48
+
/// <typeparam name="T">The model type to map the values to (using reflection).</typeparam>
49
+
/// <param name="reader">The IDataReader to read results from.</param>
50
+
/// <param name="fieldMappingOverrides">An override map of field names to column names where the keys are the property names, and values are the column names.</param>
51
+
/// <returns>A task containing the list of results.</returns>
/// Iterates each record and attempts to map the fields to type T.
53
-
/// Data is temporarily stored (buffered in entirety) in a queue of dictionaries before applying the transform for each iteration.
54
-
/// </summary>
55
-
/// <typeparam name="T">The model type to map the values to (using reflection).</typeparam>
56
-
/// <param name="reader">The IDataReader to read results from.</param>
57
-
/// <param name="fieldMappingOverrides">An optional override map of field names to column names where the keys are the property names, and values are the column names.</param>
58
-
/// <returns>The enumerable to pull the transformed results from.</returns>
/// <param name="fieldMappingOverrides">An override map of field names to column names where the keys are the property names, and values are the column names.</param>
62
+
/// <returns>A task containing the list of results.</returns>
/// Iterates each record and attempts to map the fields to type T.
68
+
/// Data is temporarily stored (buffered in entirety) in a queue of dictionaries before applying the transform for each iteration.
69
+
/// </summary>
70
+
/// <typeparam name="T">The model type to map the values to (using reflection).</typeparam>
71
+
/// <param name="reader">The IDataReader to read results from.</param>
72
+
/// <param name="fieldMappingOverrides">An optional override map of field names to column names where the keys are the property names, and values are the column names.</param>
73
+
/// <returns>The enumerable to pull the transformed results from.</returns>
0 commit comments