Mapping a View using Entity Framework 6
<p>I have a View in <strong>SQL Server</strong> and I junt want to retrieve data from this view using <strong>EF6</strong>.</p>

<p>I've added:</p>

<ul>
<li>Domain class <code>vw_foo</code></li>
<li>Context <code>DbSet&lt;vw_foo&gt;</code></li>
<li><p>Mapping <code>internal class vw_foo : EntityTypeConfiguration&lt;vw_foo&gt;</code></p>

<p><code>{
    public vw_foo()
    {
        ToTable("vw_foo", "myDB");
    }
}</code></p></li>
</ul>

<p>But I dont wanna it running on migration. I just added <code>[NotMapped]</code> decoration on my <code>Domain</code> Class. </p>

<p>And it's still not working. </p>

<p>How can I use Views just for consulting in <strong>EF6</strong> ??</p>