title: How to map column names with EF 4.3.1?
body: <p>I've got problem with simple mapping (using EF 4.3.1 - code first approach)</p>
  
  <pre><code>public class Someclass
      {
          public virtual int ID { get; set; }
          public virtual string Name { get; set; }
      } 
  </code></pre>
  
  <p>And Table <strong>someclass</strong> with int <strong>ID</strong> and varchar <strong>someclass_name</strong>.
  Now what I want to do is map <strong>Name</strong> with <strong>someclass_name</strong></p>
  
  <pre><code> modelBuilder.Entity&lt;Someclass&gt;()
               .Property(r =&gt; r.Name).HasColumnName("someclass_name");
  </code></pre>
  
  <p>But id doesn't work and exception says: "context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269)."</p>
  
  <p>I've also tried doing that by:</p>
  
  <pre><code>modelBuilder.Configurations.Add(new SomeclassMap());
  
  public class SomeclassMap : EntityTypeConfiguration&lt;Someclass&gt;
      {
          public SomeclassMap() {
            //  this.Property(r =&gt; r.Name).HasColumnName("someclass_name");
              Map(r =&gt;
              {
                  Property(m =&gt; m.Name).HasColumnName("restaurant_name");
              });
          }
      }
  </code></pre>
  
  <p>Can somebody tell me what am I doing wrong? THX</p>