private void Dispose(bool disposing) { if (disposing) { if (_context != null) { _context.Dispose(); _context = null; } } }
public UnitOfWork(MyCaseContext context) { _context = context; }
public GenreRepository(MyCaseContext context) { _context = context; }