private void UpdateIndex(Guid entityId)
        {
            var entities = _entityRepository.ToQueryable().Where(x => x.Identity == entityId).ToFuture();
            var values   = _entityValueRepository.ToQueryable().Where(x => x.EntityIdentity == entityId).ToFuture();

            foreach (var entity in entities)
            {
                var group = _groupRepository.ToQueryable().FirstOrDefault(x => x.Identity == entity.MetadataDefinitionGroupIdentity);
            }
        }
 public void Handle(MetadataDefinitionGroupNameChangedEvent @event)
 {
     var group = _groupRepository.ToQueryable().FirstOrDefault(x => x.Identity == @event.AggregateIdentity);
 }