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: README.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,10 +49,14 @@ var myResult = await cmd.ToListAsync(transform);
49
49
50
50
In order to keep connection open time to a minimum, some methods cache data before closing the connection and then subsequently applying the transformations as needed.
51
51
52
-
#### `Results<T>`&`ResultsAsync<T>`
52
+
#### `Results<T>()`
53
53
54
-
Using the provided type `T` entity, the data is coerced by which properties intersect with the ones available to the ```IDataReader```.
54
+
Synchronously queries (pulls all the data). Then using the provided type `T` entity, the data is coerced by which properties intersect with the ones available to the ```IDataReader```.
55
55
56
-
#### `Retrieve`&`RetrieveAsync`
56
+
#### `Retrieve()`
57
57
58
-
Returns a `List<Dictionary<string, object>>` containing the requested data. Takes parameters to isolate the desired columns.
58
+
Synchronously queries (pulls all the data). Returns a `QueryResult<Queue<object[]>>` containing the requested data and column mappings. The `.AsDequeueingMappedEnumerable()` extension will iteratively convert the results to dictionaries for ease of access.
59
+
60
+
#### `AsSourceBlockAsync()`
61
+
62
+
Retuns a Dataflow source block. Then asynchronously buffers and transforms the results allowing for any possible Dataflow configuration. The source block is marked as complete when there are no more results. If the block is somehow marked as complete externally, the flow of data will stop and the connection will close.
0 commit comments