Home

Entity Framework 6 DbConfiguration Error

edited October 2014
Hi ,
I've been having problems trying to create a connection by DbContext. The error says
"The default DbConfiguration instance was used by the Entity Framework before the 'ExecutionStrategyConfiguration' type was discovered".
My context class have already the attribute [DbConfigurationType(typeof(DbConfiguration))] on the header of the class.
When I test my project I need to add the statement "DbConfiguration.SetConfiguration(new DbConfiguration())" on the constructor of the test class in order for the tests to run.
I want to know if there is a way to do the same thing on linqpad ?.

Thank you in advance.

Sign In or Register to comment.