title: How to change models without losing data in production in Entity Framework 6 Code-First?
body: <p>I'm using Entity Framework 6 Code-First and my application is in production. I have to perform some changes in my models without lose any data.</p>
  
  <p>I have to perform changes like these:</p>
  
  <ul>
  <li>Change a relationship of two entities, from <strong>one-to-many</strong> to <strong>many-to-many</strong>.</li>
  <li>Change an entity property's data type.</li>
  </ul>
  
  <p>I need something like the Seed Database, but I need to load the data before change the model to later insert it again... I need to move the data. When I change the relationship I don't lose the data but the relation do.</p>
  
  <p>How can I do this process?</p>
  
  <p>Thanks so much for any help.</p>