title: Cannot generate C# class from PostgreSQL view using Npgsql + EF6 code first
body: <p>I am trying to use entity framework code first method to connect to PostgreSQL database, and when I use entity data model wizard in visual studio to generate C# class from database, it can generate classes for each table in database successfully, but the views in database cannot be generated.
  <a href="https://i.stack.imgur.com/Cur5Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cur5Y.png" alt="Entity Data Model Wizard" /></a><br />
  <sub>(source: <a href="http://linearbench.com:9000/lbstest/ef.png" rel="nofollow noreferrer">linearbench.com</a>)</sub></p>
  <p><a href="https://i.stack.imgur.com/BRxG1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BRxG1.png" alt="C# class generated" /></a><br />
  <sub>(source: <a href="http://linearbench.com:9000/lbstest/code.png" rel="nofollow noreferrer">linearbench.com</a>)</sub></p>
  <p>Can someone told me where I did wrong? I use Entity framework 6.1.3, with Npgsql 2.2.5. PosgreSQL database is version 9.3.6 installed on a Ubuntu server.</p>
  <p>Thanks</p>