Commit 337f8ce
committed
Implement the new
In a previous commit (7a37dc9) we introduced a new `TopicListDataTable` which centralizes the definition of the `TopicList` table-valued type in the SQL Server database schema. In this commit, I implement that in the `SqlTopicRepository`, simplifying the code for `PersistRelations()`.
As part of this, I moved the construction of the data table into the `for` loop so that we don't need to `Clear()` it each iteration. Not sure where this nets out in terms of performance, but it makes for cleaner and more intuitive code.TopicListDataTable class1 parent 7a37dc9 commit 337f8ce
1 file changed
Lines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | 660 | | |
666 | 661 | | |
667 | 662 | | |
| |||
670 | 665 | | |
671 | 666 | | |
672 | 667 | | |
| 668 | + | |
673 | 669 | | |
674 | 670 | | |
675 | 671 | | |
| |||
679 | 675 | | |
680 | 676 | | |
681 | 677 | | |
682 | | - | |
683 | | - | |
684 | | - | |
| 678 | + | |
685 | 679 | | |
686 | 680 | | |
687 | 681 | | |
| |||
691 | 685 | | |
692 | 686 | | |
693 | 687 | | |
694 | | - | |
695 | | - | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
696 | 691 | | |
697 | 692 | | |
698 | 693 | | |
| |||
714 | 709 | | |
715 | 710 | | |
716 | 711 | | |
717 | | - | |
718 | 712 | | |
719 | 713 | | |
720 | 714 | | |
| |||
0 commit comments