Allow to specify dependencies in IEntityTypeConfiguration

Open
#22,035 11 comments 1 reaction 1 assignee View on GitHub

@AndriySvyryd is already working on this.

Since Sep 30, 2020.

Assessment

This issue has not been assessed yet.

Description

area-model-building customer-reported
    IEnumerable<IEntityTypeConfiguration> Predecessors {get;}

This will allow ApplyConfigurationsFromAssembly to apply them in correct order, see https://github.com/dotnet/efcore/issues/21304

Also add a bool parameter to ApplyConfigurationsFromAssembly that, when set to true, will make the closest base class configuration a predecessor by default and if the opposite is specified explicitly then it will override the default.

Dominant language
C#
Stars
14.8k
Forks
3.4k
Avg merge
2d 5h
Merged PRs (30d)
134

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/efcore

All issues in dotnet/efcore

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.