def get_entity_properties(entity):
    """Returns a list with all property names in an entity.

    :param entity:
        A ``db.Model`` instance.
    :returns:
        A list with all property names in the entity.
    """
    return entity.properties().keys() + entity.dynamic_properties()