title: Entity Framework 4.3.1 to 6 EDMX (ObjectContext)
body: <p>I'm trying to upgrade a project from EF 4.3.1 to EF 6.0</p>
  
  <p>The template uses <code>ObjectContext</code> and now, whenever I change the template, it's overwriting the generated code in the *.Designer.cs file with the old EF 4.3.1 namespaces, so the build breaks.</p>
  
  <p>Is there any way I can stop this from happening? I can't see a *.tt file to hack around with. Regenerating the EDMX isn't really an option as there have been significant customisations to the conceptual model (I'd be at it for days!).</p>
  
  <p>I've tried creating a new EDMX as a test and that exhibits the same problem. As soon as I change code generation to 'Default' for <code>ObjectContext</code> usage the EDMXName.Designer.cs file is written using the old namespaces.</p>
  
  <pre><code>using System;
  using System.ComponentModel;
  using System.Data.EntityClient;
  using System.Data.Objects;
  using System.Data.Objects.DataClasses;
  using System.Linq;
  using System.Runtime.Serialization;
  using System.Xml.Serialization;
  </code></pre>
  
  <p>This is driving me to distraction - I think I'm going to have to hack it down to EF 5.0</p>