DbContextScope icon indicating copy to clipboard operation
DbContextScope copied to clipboard

What to pass to IDbContextFactory argument in DbContextScope constructor?

Open h-morales opened this issue 3 years ago • 1 comments

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

h-morales avatar Sep 26 '22 09:09 h-morales

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.

tiesont avatar Sep 27 '22 06:09 tiesont