protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    DisposeContext();
                    _context = null;
                    _dbSet   = null;
                }

                disposedValue = true;
            }
        }
 public EfGenericRepository(CommonRepositoryContext context)
 {
     _context = context;
     _dbSet   = context.Set <T>();
 }