title: Scaffold-DbContext for database views in EF Core 2.1 (Query Types)
body: <p>EF Core 2.1 has new feature - <strong>Query Types</strong>.</p>
  <blockquote>
  <p>Some of the main usage scenarios for query types are:</p>
  <ul>
  <li>Serving as the return type for ad hoc FromSql() queries.</li>
  <li><strong>Mapping to database views.</strong></li>
  <li>Mapping to tables that do not have a primary key defined.</li>
  <li>Mapping to queries defined in the model.</li>
  </ul>
  </blockquote>
  <p>I upgrade project to Core 2.1, but Scaffold-DbContext still does not generate database views. I have to use a special parameter or the Scaffold-DbContext does not support it?</p>