You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I looked at your course and I had a question.
You are considering the context connection option as AddContext(). In this case, everything is fine in your example. But what if I want to use AddPooledDbContextFactory(). How do I implement a factory and encapsulate the logic?
The text was updated successfully, but these errors were encountered:
Haven't tried this with AddDbContextPool, but the approach from the course may not work with this extension method directly, indeed. In this case, you could add a method in your DbContext that would do the configuration. It's not as clean as what I showed in the course, but at least the logic of configuring the DbContext would reside in that DbContext itself.
Good afternoon.
I looked at your course and I had a question.
You are considering the context connection option as
AddContext()
. In this case, everything is fine in your example. But what if I want to useAddPooledDbContextFactory()
. How do I implement a factory and encapsulate the logic?The text was updated successfully, but these errors were encountered: