In my application I receive the following error:
The context cannot be used while the model is being created.
I\'m not sure what
I had the same issue and solved it using following code:
Database.SetInitializer(null);