title: The navigation property is not a declared property on type during Code First migration with EF6 and MVC 5
body: <p>I'm trying to add new table into existing database. The database is auto-created by MVC 5 project. After trying many different things I didn't succeed in adding table Post into my database.</p>
  
  <p>When I run: </p>
  
  <pre><code>PM&gt; Enable-Migrations -ContextTypeName StudentBookApp.Models.PostContext -Force
  </code></pre>
  
  <p>I get an error saying: <strong>The navigation property 'PostText' is not a declared property on type 'Post'. Verify that it has not been explicitly excluded from the model and that it is a valid navigation property.</strong></p>
  
  <p>I don't understand this error, bacause PostText it's not a navigation property and I'm not sure why Entity Framework thinks it is.</p>
  
  <p>This is definition of my Post class, within the class I have PostContext class also:</p>
  
  <pre><code>public class Post
  {
      [Key]
      public int PostId { get; set; }
      public string PostText { get; set; }
      public byte[] ImagePost { get; set; }
      public byte[] FilePost { get; set; }
      public string TextPost { get; set; }
      public string UserId { get; set; }
  }
  
  public class PostContext : DbContext
  {
      static PostContext()
      {
          Database.SetInitializer(new DropCreateDatabaseIfModelChanges&lt;PostContext&gt;());
      }
  
      public DbSet&lt;Post&gt; Posts { get; set; }
  
      protected override void OnModelCreating(DbModelBuilder modelBuilder)
      {
          modelBuilder.Configurations.Add(new PostConfiguration());
      }
  }
  </code></pre>
  
  <p>I've also created mapping class PostConfiguration:</p>
  
  <pre><code>public class PostConfiguration : EntityTypeConfiguration&lt;Post&gt;
      {
          public PostConfiguration() : base()
          {
              HasKey(p =&gt; p.PostId);
              ToTable("Post");
  
              HasRequired(p =&gt; p.PostText);
              ToTable("Post");
  
              HasOptional(p =&gt; p.ImagePost);
              ToTable("Post");
  
              HasOptional(p =&gt; p.FilePost);
              ToTable("Post");
  
              HasOptional(p =&gt; p.TextPost);
              ToTable("Post");
  
              HasRequired(p =&gt; p.UserId);
              ToTable("Post");
          }
      }
  </code></pre>
  
  <p>And I'm trying to do simple migration of database calling:</p>
  
  <pre><code>Enable-Migration
  Add-Migration "NewMigration"
  Update-Database
  </code></pre>
  
  <p>But on a Enabling migration I get mentioned error. 
  Does someone knows what I'm doing wrongly?</p>
  
  <p>Edit:</p>
  
  <p>This is connectionString inside Web.config file</p>
  
  <pre><code> &lt;connectionStrings&gt;
      &lt;add name="PostContext" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-StudentBookApp-20150114035149.mdf;Initial Catalog=aspnet-StudentBookApp-20150114035149;Integrated Security=True"
        providerName="System.Data.SqlClient" /&gt;
    &lt;/connectionStrings&gt;
  </code></pre>