from typing import Sequence


def entity_dict_has_primary_key(pk_names: Sequence[str], entity_dict: dict) -> bool:
    """ Check whether the given dict contains all primary key fields """
    return set(pk_names) <= set(entity_dict)