Open roji opened 1 year ago
Note from triage: do this for AddDbContext
and friends, but currently nothing to do in the internal service provider.
Is there any idea on this possibly happening or an ETA on it?
This issue is in the Backlog milestone. This means that it is not planned for the next release (EF Core 9.0). We will re-assess the backlog following the this release and consider this item at that time. However, keep in mind that there are many other high priority features with which it will be competing for resources. Make sure to vote (👍) for this issue if it is important to you.
.NET 8.0 brings keyed services to DI, allowing multiple services with the same CLR type to be registered in the same service provider. This can be useful for various scenarios, e.g. a read-only and read-write DbContext (same CLR type, different connection strings), possibly restricted multitenancy scenarios, and so on.
This could potentially also be useful for some scenarios in EF's internal service provider...