title: Can't auto generate controller with views from EF
body: <p>Steps I did:</p>
  
  <ul>
  <li>Install Npgsql EF extension for Visual studio </li>
  <li>Create a new Project</li>
  <li>Install Npgsql from nuget</li>
  <li>Install EntityFramework6.Npgsql from nuget</li>
  <li>Create connection to postgresql using Server Explorer</li>
  <li>Create ADO.NET Entity Data Model - EF Designer From DB</li>
  <li>Compile</li>
  <li>Create Controller using Entity Framework</li>
  </ul>
  
  <p>The last step give me this error:</p>
  
  <pre><code>There was an error running the selected code generator: 
  'Unable to retrieve metadata for 'MyProject.Models.MyClass' 
   Unable to find the requested .Net Framework Data Provider. It may not be installed. 
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/lp8uZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lp8uZ.png" alt="enter image description here"></a></p>
  
  <p>So I can connect to postgres, create the model from DB, but cant auto generate view from EF.</p>
  
  <p>Further technical details</p>
  
  <ul>
  <li>Npgsql version: 3.2.7</li>
  <li>EntityFramework6.Npgsql 3.1.1</li>
  <li>PostgreSQL version: 9.4</li>
  <li>Operating system: Windows 10</li>
  <li>Visual Studio Community 2017 v15.4</li>
  </ul>
  
  <p>In the webconfig I have this section</p>
  
  <pre><code>  &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name="Npgsql" publicKeyToken="5d8b90d52f46fda7" culture="neutral" /&gt;
      &lt;bindingRedirect oldVersion="0.0.0.0-3.2.7.0" newVersion="3.2.7.0" /&gt;
    &lt;/dependentAssembly&gt;
  </code></pre>
  
  <p>Not sure if need add anything else so VS see it as Installed.</p>