title: Entity Framework Change Primary Key Type
body: <p>I'm using EF 6.0 Code First, and I have this entity: </p>
  
  <pre><code> public class TrainingRespect
   {
      [Key]
      public int RespectId { get; set; }
  
      public DateTime? DateWhenRespected { get; set; }
  
      #region
  
      public string UserId { get; set; }
      public User User { get; set; }
  
      public Guid TrainingId { get; set; }
      public Trening Training { get; set; }
  
      #endregion
   }
  </code></pre>
  
  <p>And I would like to change it's Primary Key (RespectId) from int to GUID / string / long. </p>
  
  <p>What is easiest way of doing this ? Can I just change type and EF migrations will take care of everything or it should be done some other way ?  </p>