efcore icon indicating copy to clipboard operation
efcore copied to clipboard

Associate the DatabaseRoot with the scoped options instance and not the singleton options.

Open koenigst opened this issue 1 year ago • 1 comments

  • Remove the DatabaseRoot from the InMemoryOptionsExtension service provider equality condition.
  • Remove the DatabaseRoot from the InMemorySingletonOptions.
  • Resolve the IInMemoryStore in a scoped service (IInMemoryStoreProvider) instead of a singleton service (IInMemoryStoreCache).
  • Fall back to the DatabaseRoot stored in a singleton service (IInMemoryDatabaseRootCache) if the options does not specify one.

Fixes #34476

koenigst avatar Aug 20 '24 13:08 koenigst

@dotnet-policy-service agree company="Zühlke Engineering AG"

koenigst avatar Aug 21 '24 05:08 koenigst

Thanks for your contribution!

AndriySvyryd avatar Jan 30 '25 18:01 AndriySvyryd