The default DbConfiguration instance was used by the Entity Framework before the ‘SqlAzureConfiguration’ type was discovered

SqlAzureConfiguration is just a configuration class for SqlAzure.

   1: public class SqlAzureConfiguration : DbConfiguration

   2: {

   3:     public SqlAzureConfiguration()

   4:     {

   5:         SetExecutionStrategy("System.Data.SqlClient", () => new System.Data.Entity.SqlServer.SqlAzureExecutionStrategy());

   6:     }

   7: }


I get the error when the app tries to instantiate the DbContext.


   1: <entityFramework codeConfigurationType="WinWin.Domain.Model.SqlAzureConfiguration, WinWin.Domain.Model">

   2:     ...

   3: </entityFramework>


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s