DbContextScope
DbContextScope copied to clipboard
What to pass to IDbContextFactory argument in DbContextScope constructor?
In the demo application, its always null. Im trying to understand the purpose of that. And when using DI, what instance does it need?
Thanks
IDbContextFactory allows you to configure a custom context factory. If one is not provided, System.Activator is used to create each DbContext.
And when using DI, what instance does it need?
Probably need a bit more context here - not entirely sure what you're asking.