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 6 months 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