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
Refactor diagnostics and improve channel processing
- Changed severity levels for diagnostics in `.editorconfig` to `silent` for `IDE0301`, `IDE0305`, `IDE0306`, and `RCS1077`.
- Simplified methods in `ChannelDbExtensions` by adding `Contract.EndContractBlock()` and using lambda expressions for channel writing.
- Refactored `PipeResultsTo` and `PipeResultsToAsync` methods in `Transformer.cs` for better clarity and handling of transformations.
- Added new asynchronous methods in `DataReaderExtensions` for converting `DbDataReader` to `IAsyncEnumerable<object[]>`.
- Expanded test cases in `IDataReaderToChannelObjectArrayExtensionTests.cs` to cover additional scenarios and ensure proper null checks.
- Updated `ToChannelExtensionsContractTests` to include asynchronous tests for null parameter checks.
/// <summary>Constructs a <see cref="Transformer{T}"/>.</summary>
4
6
/// <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>
@@ -10,24 +12,27 @@ internal class Transformer<T>(IEnumerable<(string Field, string? Column)>? field
10
12
/// Static utility for creating a Transformer <typeparamref name="T"/>.
11
13
/// </summary>
12
14
/// <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>
/// Transforms the results from the reader by first buffering the results and if/when the buffer size is reached, the results are transformed to a channel for reading.
20
+
/// Transforms the results from the reader by first buffering the results and then the final results are transformed to the target channel for reading.
18
21
/// </summary>
19
-
/// <param name="reader">The reader to read from.</param>
20
-
/// <param name="target">The target channel to write to.</param>
21
-
/// <param name="complete">Will call complete when no more results are avaiable.</param>
/// Transforms the results from the reader by first buffering the results and if/when the buffer size is reached, the results are transformed to a channel for reading.
65
+
/// </summary>
66
+
/// <param name="reader">The reader to read from.</param>
67
+
/// <param name="target">The target channel to write to.</param>
68
+
/// <param name="complete">Will call complete when no more results are avaiable.</param>
0 commit comments