title: How to Fix 'The model backing the context has changed since the database was created.' in database first
body: <p>I am trying to connect entity to an existing database, but am having a hard time figuring out why I am getting the following error:</p>
  
  <blockquote>
    <p>The model backing the 'RPSContext' context has changed since the database was created. Consider using Code First Migrations to update the database (<a href="http://go.microsoft.com/fwlink/?LinkId=238269" rel="nofollow noreferrer">http://go.microsoft.com/fwlink/?LinkId=238269</a>).</p>
  </blockquote>
  
  <p>As I mentioned, I am connecting to an existing database. So I don't need entity to modify structure. I'd just like to be able to select/insert/update/etc.</p>
  
  <h2>Design:</h2>
  
  <p><img src="https://i.stack.imgur.com/WXXzl.jpg" alt="DB Design"></p>
  
  <h2>Model:</h2>
  
  <pre><code>public class ProductAttributePriceAdjustment
  {
          [Key]
          public int AdjustmentId { get; set; }
          public int StoreProductId { get; set; }
          public int StoreId { get; set; }
          public string ProductId { get; set; }
          public int ProductSizeId { get; set; }
          public decimal Adjustment { get; set; }
          public int PointsAdjustment { get; set; }
          public int ProductColorID { get; set; }
  }
  </code></pre>
  
  <h2>Context</h2>
  
  <pre><code>public class RPSContext : DbContext
  {
          public RPSContext() : base("ApplicationConnection")
          {
          }
  
          protected override void OnModelCreating(DbModelBuilder modelBuilder)
          {
              modelBuilder.Entity&lt;ProductAttributePriceAdjustment&gt;().ToTable("ProductAttributePriceAdjustment");
          }
  
          public DbSet&lt;ProductAttributePriceAdjustment&gt; PriceAdjustments { get; set; }
  }
  </code></pre>