title: Entity framework error "Entity type is not mapped."
body: <p>We are using Entity Framework in our project and I have an entity that I built in my model. I then have a function import that uses a stored procedure. The method created by the function import is supposed to return a collection of the custom entity I created.</p>
  
  <blockquote>
    <p>The problem is that I get an error when I build that says "The entity type 'someentity' is not mapped.</p>
  </blockquote>
  
  <p>What does this mean? Is it upset because the entity does not have an underlying data store? It doesn't need one, the function import returns instances of this entity and I have no need to update, edit, or insert entities of this type.</p>
  
  <p>The function import works great and returns a collection of my entity as desired, but this error is annoying. Though the error list lists it as a compile error, it does not actually stop the solution from compiling.</p>
  
  <h2>Update</h2>
  
  <p>If I open the EDMX in the XML editor and double click the error in the error list it highlights this chunk of XML in red:</p>
  
  <pre><code>   &lt;EntityContainerMapping StorageEntityContainer="KlasEntitiesStoreContainer" CdmEntityContainer="KlasEntities"&gt;
        &lt;EntitySetMapping Name="VendorBriefs"&gt;&lt;EntityTypeMapping TypeName="KlasEntityDataModel.VendorBrief"&gt;&lt;MappingFragment StoreEntitySet="ev_VendorBriefs"&gt;
          &lt;ScalarProperty Name="VendorBriefID" ColumnName="VendorBriefID" /&gt;
          &lt;ScalarProperty Name="Title" ColumnName="Title" /&gt;
          &lt;ScalarProperty Name="Link" ColumnName="Link" /&gt;
          &lt;ScalarProperty Name="LinkText" ColumnName="LinkText" /&gt;
          &lt;ScalarProperty Name="BriefPath" ColumnName="BriefPath" /&gt;
          &lt;ScalarProperty Name="Description" ColumnName="Description" /&gt;
          &lt;ScalarProperty Name="IsActive" ColumnName="IsActive" /&gt;
          &lt;ScalarProperty Name="DisplayOrder" ColumnName="DisplayOrder" /&gt;
        &lt;/MappingFragment&gt;&lt;/EntityTypeMapping&gt;&lt;/EntitySetMapping&gt;
        &lt;FunctionImportMapping FunctionImportName="SearchForVendorProductByKlasID" FunctionName="KlasEntities.Store.ev_ds_Products_SearchByKLASID" /&gt;
      &lt;/EntityContainerMapping&gt;
  </code></pre>