In .NET core 3.1 you can use a service scope factory. In .NET 5 you can use the DbContextFactory. Create package that does both depending on the .NET version. Reference: https://github.com/orgs/MatrTech/teams/developers/discussions/1
In .NET core 3.1 you can use a service scope factory.
In .NET 5 you can use the DbContextFactory.
Create package that does both depending on the .NET version.
Reference:
https://github.com/orgs/MatrTech/teams/developers/discussions/1