Skip to content

Commit 07ea524

Browse files
committed
Moved Load() helpers to SqlDataReaderExtensions
Most of the `Load()` helper functions operate off of individual records returned from `SqlDataReader`, and can thus be implemented as extensions. Better yet, these can be kept as `private` extensions, with a single internal `LoadTopicGraph()` extension as the entry point, thus hiding much of the internal complexity from `SqlTopicRepository`. This doesn't really reduce the amount of code or complexity involved in `SqlTopicRepository`, but it does help reorganize the code, and keep `SqlTopicRepository` focused on the higher level logic, instead of the parsing of individual records in order to populate the topic graph.
1 parent 3dc4a76 commit 07ea524

2 files changed

Lines changed: 376 additions & 378 deletions

File tree

0 commit comments

Comments
 (0)