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
{{ message }}
Repository navigation
Commit 3f7b4e1
Browse filesBrowse the repository at this point in the historyBrowse files
/// Iterates an <see cref="IDataReader"/> and writes each record as an array of values to the target channel.
97
97
/// </summary>
98
-
/// <param name="reader">The data reader to iterate. The caller owns it: it is not closed or disposed here, and it must stay open until the operation completes.</param>
98
+
/// <param name="reader">The data reader to iterate. The caller owns it: it is not closed or disposed here, and it must stay open until the operation completes. It is moved on to the next result set once the last row has been read, so that an error that follows the rows is raised.</param>
99
99
/// <param name="target">The channel writer that receives the records.</param>
100
100
/// <param name="complete">If <see langword="true"/>, the target is completed once all the records have been written to it (or the source is empty).</param>
101
101
/// <param name="cancellationToken">A token that can cancel the operation.</param>
@@ -115,7 +115,7 @@ public static ValueTask<long> ToChannel(this IDataReader reader,
115
115
/// <summary>
116
116
/// Iterates an <see cref="IDataReader"/> and writes each record as an array of values rented from an array pool to the target channel.
117
117
/// </summary>
118
-
/// <param name="reader">The data reader to iterate. The caller owns it: it is not closed or disposed here, and it must stay open until the operation completes.</param>
118
+
/// <param name="reader">The data reader to iterate. The caller owns it: it is not closed or disposed here, and it must stay open until the operation completes. It is moved on to the next result set once the last row has been read, so that an error that follows the rows is raised.</param>
119
119
/// <param name="target">The channel writer that receives the records.</param>
120
120
/// <param name="complete">If <see langword="true"/>, the target is completed once all the records have been written to it (or the source is empty).</param>
121
121
/// <param name="arrayPool">The array pool to rent each record's array from, or <see langword="null"/> to allocate new arrays. The consumer of the channel is responsible for returning each array to the pool.</param>
@@ -138,7 +138,7 @@ public static ValueTask<long> ToChannel(this IDataReader reader,
138
138
/// Iterates an <see cref="IDataReader"/> and writes each record after it has been transformed by <paramref name="transform"/> to the target channel.
139
139
/// </summary>
140
140
/// <typeparam name="T">The type of the items written to the channel: the return type of the transform function.</typeparam>
141
-
/// <param name="reader">The data reader to iterate. The caller owns it: it is not closed or disposed here, and it must stay open until the operation completes.</param>
141
+
/// <param name="reader">The data reader to iterate. The caller owns it: it is not closed or disposed here, and it must stay open until the operation completes. It is moved on to the next result set once the last row has been read, so that an error that follows the rows is raised.</param>
142
142
/// <param name="target">The channel writer that receives the records.</param>
143
143
/// <param name="complete">If <see langword="true"/>, the target is completed once all the records have been written to it (or the source is empty).</param>
144
144
/// <param name="transform">The function that transforms each <see cref="IDataRecord"/> into the item written to the channel.</param>
@@ -161,7 +161,7 @@ public static ValueTask<long> ToChannel<T>(this IDataReader reader,
161
161
/// Iterates an <see cref="IDataReader"/> and writes each record mapped to a new instance of <typeparamref name="T"/> to the target channel.
162
162
/// </summary>
163
163
/// <typeparam name="T">The type each record is mapped to.</typeparam>
164
-
/// <param name="reader">The data reader to iterate. The caller owns it: it is not closed or disposed here, and it must stay open until the operation completes.</param>
164
+
/// <param name="reader">The data reader to iterate. The caller owns it: it is not closed or disposed here, and it must stay open until the operation completes. It is moved on to the next result set once the last row has been read, so that an error that follows the rows is raised.</param>
165
165
/// <param name="target">The channel writer that receives the records.</param>
166
166
/// <param name="complete">If <see langword="true"/>, the target is completed after the last record has been delivered to it, or with the error that ended the operation.</param>
167
167
/// <param name="cancellationToken">A token that can cancel the operation.</param>
@@ -181,7 +181,7 @@ public static ValueTask<long> ToChannel<T>(this IDataReader reader,
181
181
/// </summary>
182
182
/// <remarks>Declare the <see cref="RowMap{T}"/> once and pass it: a map built in the call (a <c>new RowMap<T>(...)</c> or a collection expression in the argument) is rebuilt, and its row reader compiled, on every call.</remarks>
183
183
/// <typeparam name="T">The type each record is mapped to.</typeparam>
184
-
/// <param name="reader">The data reader to iterate. The caller owns it: it is not closed or disposed here, and it must stay open until the operation completes.</param>
184
+
/// <param name="reader">The data reader to iterate. The caller owns it: it is not closed or disposed here, and it must stay open until the operation completes. It is moved on to the next result set once the last row has been read, so that an error that follows the rows is raised.</param>
185
185
/// <param name="target">The channel writer that receives the records.</param>
186
186
/// <param name="complete">If <see langword="true"/>, the target is completed after the last record has been delivered to it, or with the error that ended the operation.</param>
0 commit comments