protected override void DisposeCore() { if (_context != null) { _context.Dispose(); } }
private void Dispose(bool disposing) { if (!disposing) { return; } if (_dbContext == null) { return; } _dbContext.Dispose(); _dbContext = null; _profileRepository = null; _accountRepository = null; _teacherRepository = null; _classGroupRepository = null; _classRoomRepository = null; _courseRepository = null; _divisionRepository = null; _organizationRepository = null; _semesterRepository = null; _subjectGroupRepository = null; _subjectRepository = null; _buildingRepository = null; _roomRepository = null; _teacherDivisionRepository = null; _classTimetableRepository = null; _TimetableRepository = null; _courseSectionRepository = null; _schedulingTableRepository = null; _courseSubjectRepository = null; _trainingProgramRepository = null; _messagingDataMappingRepository = null; _messagingMessageRepository = null; _messagingTemplateContentRepository = null; _messagingTemplateRepository = null; _messagingTypeRepository = null; }