title: Entity Framework 5 Invalid Column Name error
body: <p>I'm currently writing a billing application using EF 5 Code First, and I'm running into an error when I'm running the application.</p>
  
  <p>The database object in question is as follows:</p>
  
  <pre><code>[Table("Client")]
  public class ClientBase
  {
      [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
      public int ClientID { get; set; }
  
      [Required]
      public string ClientName { get; set; }
  
      [Required]
      public bool IsActive { get; set; }
  
      [Required]
      public string ClientContactName { get; set; }
  
      [Required]
      public string ClientContactEmail { get; set; }
  
      [Required]
      public DateTime ClientStartDate { get; set; }
  
      [Required]
      public string SalesforceID { get; set; }
  
      public DateTime TerminatedDate { get; set; }
  
      public string ClientStreet { get; set; }
  
      public string ClientCity { get; set; }
  
      public string ClientState { get; set; }
  
      public int? ClientZipCode { get; set; }
  
      public virtual List&lt;PropertyBase&gt; Properties { get; set; }
  
      public virtual List&lt;ClientCharge&gt; ClientDefaultCharges { get; set; }
  
  }
  </code></pre>
  
  <p>I recently added a bunch of those fields (From ClientStartDate down to ClientZipCode are all new), and whenever I run the application I get the following error:</p>
  
  <pre><code>{"Invalid column name 'ClientStartDate'.\r\nInvalid column name 'SalesforceID'.\r\nInvalid column name 'TerminatedDate'.\r\nInvalid column name 'ClientStreet'.\r\nInvalid column name 'ClientCity'.\r\nInvalid column name 'ClientState'.\r\nInvalid column name 'ClientZipCode'."}
  </code></pre>
  
  <p>What amazes me, though, is that my database actually has updated accordingly. Those fields are now on the table, but this is still giving me an error.</p>
  
  <p>Any ideas for what's going wrong here?</p>
  
  <p>EDIT: Ok, there apparently was one thing I forgot to mention: SalesforceID is NOT a foreign key. None of the columns that were added were actually FKs. They are just plain fields.</p>