Skip to content

IMaterializationInterceptor.Completion #35386

@sjb-sjb

Description

@sjb-sjb

The callbacks in IMaterializationInterceptor occur on an entity-by-entity basis without any consideration of related entities. For example, on materialization I cannot validate or calculate something that requires a related entity (always included in my queries).

It would be useful to have a materialization interceptor method that is called with an enumerable of the materialized entities after they have been identity-resolved and navigations have been populated. Alternatively, a DbContext event for this.

Commenting that the entities in the enumerable may not be tracked, if tracking was disabled for the query.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions