Warn on redundant AddEntityFramework* calls #19053
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
Servicing-approved
type-enhancement
Milestone
If AddDbContext is called after AddEntityFramework* and the service provider is not configured as the internal service provider we should log a warning as this means that the services added are not used.
Also calling AddEntityFramework* first adds the EF-specific IMemoryCache, this is detrimental to other products using the same service provider: #12905 (comment)
The text was updated successfully, but these errors were encountered: