Changes in src/FinkiChattery/FinkiChattery.Persistence/UnitOfWork/Implementations/UnitOfWork.cs [95d80e4:ad079e5]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/FinkiChattery/FinkiChattery.Persistence/UnitOfWork/Implementations/UnitOfWork.cs
r95d80e4 rad079e5 12 12 private StudentRepo _students; 13 13 private TeamRepo _teams; 14 private VoteRepo _votes; 15 private AnswerRepo _answers; 14 16 15 17 public UnitOfWork(ApplicationDbContext dbContext) … … 70 72 } 71 73 74 public IVoteRepo Votes 75 { 76 get 77 { 78 if (_votes == null) 79 { 80 _votes = new VoteRepo(DbContext); 81 } 82 83 return _votes; 84 } 85 } 86 87 public IAnswerRepo Answers 88 { 89 get 90 { 91 if (_answers == null) 92 { 93 _answers = new AnswerRepo(DbContext); 94 } 95 96 return _answers; 97 } 98 } 99 72 100 public ApplicationDbContext DbContext { get; } 73 101
Note:
See TracChangeset
for help on using the changeset viewer.