title: The default DbConfiguration instance was used before the 'EntityFrameworkConfiguration' type was discovered
body: <pre><code> public class EntityFrameworkConfiguration : DbConfiguration
      {
          public EntityFrameworkConfiguration()
          {
              this.SetModelCacheKey(ctx =&gt; new EntityModelCacheKey((ctx.GetType().FullName + ctx.Database.Connection.ConnectionString).GetHashCode()));
          }
      }
  </code></pre>
  
  <p>To make the above code work i have added below line in web.config
  </p>
  
  <p>But for other project where i am using the assembly reference i am getting exception:</p>
  
  <blockquote>
    <p>{"The default DbConfiguration instance was used by the Entity
    Framework before the 'EntityFrameworkConfiguration' type was
    discovered. An instance of 'EntityFrameworkConfiguration' must be set
    at application start before using any Entity Framework features or
    must be registered in the application's config file. See
    <a href="http://go.microsoft.com/fwlink/?LinkId=260883" rel="noreferrer">http://go.microsoft.com/fwlink/?LinkId=260883</a> for more information."}</p>
  </blockquote>