title: MVC4 Scaffolding Add Controller gives error "Unable to retrieve metadata..."
body: <p>I'm using RTM version of Windows 8 and VS 2012 Ultimate. I have a MVC4 project using <strong>SqlCe 4.0 with a code first entity framework model</strong>.</p>
  
  <p>Model is very simple:</p>
  
  <pre><code>   public class MyThing
      {
          public int MyThingId { get; set; }
  
          public int UserId { get; set; }
          public string Title { get; set; }
          public string Address { get; set; }
          public string Description { get; set; }
          public DateTime Date { get; set; }
    }
  </code></pre>
  
  <p>When I try to create a new controller with the built in scaffolding too I get the following error:</p>
  
  <blockquote>
    <p>"Unable to retrieve metadata for MyThing"</p>
    
    <p>"Using the same DbCompiledModel to create contexts against different
    types of database servers is not supported. Instead, create a
    separate DbCompiledModel for each type of server being used.</p>
  </blockquote>
  
  <p>How do I get scaffolding to work?</p>