title: Change column names in Code-first Entity Framework?
body: <p>I have these data classes:</p>
  
  <pre><code>public class X
  {
      public int ID{ get; set; } 
      public string Value{ get; set; }
      public virtual ICollection&lt;Y&gt; Ys{ get; set; }
  }
  
  public class Y
  {
      public int ID{ get; set; } 
      public string Value{ get; set; }
      public virtual ICollection&lt;X&gt; Xs{ get; set; }
  }
  </code></pre>
  
  <p>Suppose the tables generated are:</p>
  
  <pre><code>X [ ID, Value ]
  
  Y [ ID, Value ]
  
  XYs [ X_ID, Y_ID ]
  </code></pre>
  
  <p>I want to change X_ID to XID and Y_ID to YID but it gives me error:</p>
  
  <pre><code>Invalid column name 'X_ID'.
  Invalid column name 'Y_ID'.
  </code></pre>
  
  <p>How can I change column names without running into this problem?</p>