public void ResetContext()
 {
     _context              = null;
     _context              = new RemembrallContext();
     PersonRepository      = new SqlPersonRepository(_context);
     NotesRepository       = new SqlNoteRepository(_context);
     EmailsRepository      = new SqlEmailRepository(_context);
     PhonesRepository      = new SqlPhoneRepository(_context);
     SpecialDateRepository = new SqlSpecialDateRepository(_context);
 }
 public MainSqlRepository()
 {
     _context              = new RemembrallContext();
     PersonRepository      = new SqlPersonRepository(_context);
     NotesRepository       = new SqlNoteRepository(_context);
     EmailsRepository      = new SqlEmailRepository(_context);
     PhonesRepository      = new SqlPhoneRepository(_context);
     SpecialDateRepository = new SqlSpecialDateRepository(_context);
     _disposed             = false;
 }