Skip to content

Using external DbContext within hook. #1801

Answered by tidyui
gmullernh asked this question in Q&A
Discussion options

You must be logged in to vote

The problem is that the context you’re using in the hook will be disposed as soon as the Configure method is done, you need to resolve the context inside the hook itself.

See this SO answer for reference! https://stackoverflow.com/a/65631856/1793832

Best regards

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gmullernh
Comment options

Answer selected by gmullernh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants