title: In which namespace is the extension method EntityTypeConfiguration.MapSingleType
body: <p>I am trying to implement the following code to map a database to a POCO that has slightly different Property names then the corresponding columns, and a slightly different class name than the table name. </p>
  
  <p><img src="https://weblogs.asp.net/blogs/scottgu/image_thumb_54C65380.png" alt="map to single type"></p>
  
  <p><a href="http://weblogs.asp.net/scottgu/archive/2010/07/23/entity-framework-4-code-first-custom-database-schema-mapping.aspx" rel="nofollow noreferrer">Here's the article</a></p>
  
  <p>The problem is there is no method called MapSingleType. I have the following two methods available:</p>
  
  <pre><code>public EntityTypeConfiguration&lt;TEntityType&gt; Map&lt;TDerived&gt;(Action&lt;EntityMappingConfiguration&lt;TDerived&gt;&gt; derivedTypeMapConfigurationAction) where TDerived : class, TEntityType;
  
  public EntityTypeConfiguration&lt;TEntityType&gt; Map(Action&lt;EntityMappingConfiguration&lt;TEntityType&gt;&gt; entityMappingConfigurationAction);
  </code></pre>
  
  <p>However, I can't find any examples of how to use them and I'm hoping to find the MapSingleType method since that works perfect for the very large number of columns I have to map. </p>
  
  <p>I have downloaded CTP4 <a href="http://www.microsoft.com/en-us/download/details.aspx?id=8812" rel="nofollow noreferrer">from here</a></p>
  
  <p>And I am using EF 4.0.3</p>
  
  <p>Here is the code I have so far:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Data.Entity;
  using System.ComponentModel.DataAnnotations;
  using PlayingWithEF.DAL.CLS.Classes;
  using System.Data.Entity.ModelConfiguration;
  
  namespace PlayingWithEF.DAL.CLS.Context
  {
  
      public class CLSContext : DbContext
      {
          public DbSet&lt;Listing&gt; Listings { get; set; }
  
          protected override void OnModelCreating(DbModelBuilder modelBuilder)
          {
              modelBuilder.Entity&lt;Listing&gt;().Map(...?)
          }
      }
  }
  </code></pre>