Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What to pass to IDbContextFactory argument in DbContextScope constructor? #70

Open
h-morales opened this issue Sep 26, 2022 · 1 comment

Comments

@h-morales
Copy link

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

@tiesont
Copy link
Contributor

tiesont commented Sep 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants