title: Entity Framework Code Generation Strategy generates errors
body: <p>I installed Entity Framework 6 and am using Visual Studio 2012 to practice with it. I created a WPF application and added a ADO.NET Entity Data Model to connect to a MySQL database that I have on localhost. In the properties of the design (of the data model), I changed to the value of "Code Generation Strategy" to "default," so that it generates code in <code>Model1.Designer.cs</code> for me. But the code that it generates has errors:</p>
  
  <pre><code>    //------------------------------------------------------------------------------
      // &lt;auto-generated&gt;
      //    This code was generated from a template.
      //
      //    Manual changes to this file may cause unexpected behavior in your application.
      //    Manual changes to this file will be overwritten if the code is regenerated.
      // &lt;/auto-generated&gt;
      //------------------------------------------------------------------------------
  
      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;
  
      [assembly: EdmSchemaAttribute()]
      #region EDM Relationship Metadata
  
      [assembly: EdmRelationshipAttribute("SchoolDBModel", "studentcourse", "course", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(WpfApplication1.course), "student", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(WpfApplication1.student))]
  
      #endregion
  
      namespace WpfApplication1
      {
          #region Contexts
  
          /// &lt;summary&gt;
          /// No Metadata Documentation available.
          /// &lt;/summary&gt;
          public partial class SchoolDBEntities : ObjectContext
          {
              #region Constructors
  
              /// &lt;summary&gt;
              /// Initializes a new SchoolDBEntities object using the connection string found in the 'SchoolDBEntities' section of the application configuration file.
              /// &lt;/summary&gt;
              public SchoolDBEntities() : base("name=SchoolDBEntities", "SchoolDBEntities")
              {
                  this.ContextOptions.LazyLoadingEnabled = true;
                  OnContextCreated();
              }
      // More code below with errors...
  </code></pre>
  
  <p>The first error is the base call in the constructor, that says</p>
  
  <blockquote>
    <p>The best overloaded method match for 'System.Data.Entity.DbContext.DbContext(string, System.Data.Entity.Infrastructure.DbCompiledModel)' has some invalid arguments</p>
  </blockquote>
  
  <p>And the next error is the line where it's setting <code>this.ContextOptions.LazyLoadingEnabled</code>, it says</p>
  
  <blockquote>
    <p>'WpfApplication1.SchoolDBEntities' does not contain a definition for 'ContextOptions' and no extension method 'ContextOptions' accepting a first argument of type 'WpfApplication1.SchoolDBEntities' could be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>Does anyone know why it's generating code with errors?</p>