In my application I receive the following error:
The context cannot be used while the model is being created.
I\'m not sure what
One wrong thing in your code is always use DB context in using block. DB context is not thread safe. And is better used one instant per request
using