efcore / EFCore.FSharp

Adds F# design-time support to EF Core
MIT License
228 stars 26 forks source link

Prevent ManyServiceProvidersCreatedWarning exception (#129) #130

Closed simon-reynolds closed 2 years ago

simon-reynolds commented 2 years ago

Proposed Changes

Update ExtensionInfo for FSharpTypeOptionsExtension to not create new instances of the service provider each time we create a context

Types of changes

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...