Skip to content

Add API to configure construction of entity type instances #10789

@ajcvickers

Description

@ajcvickers

Issue #10703 covered the ability of EF to call a parameterized constructor. However, the constructor to use is not configurable. This issue is about adding fluent API and/or annotations to do this and also:

  • How properties are bound
  • Injecting services or service methods--i.e. generalized case of ILazyLoader and its related delegate
  • Configuring a factory method instead of using a constructor directly
  • Consider NotMapped/Ignore to just exclude a constructor from being used by EF

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Feature.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions