title: Change foreign key constraint naming convention
body: <p>We have our own external convention of naming objects and I need to change the naming convention for the auto generated foreign key constraints. Now it looks like: <code>FK_dbo.City_dbo.CityType_City_CityTypeId</code> but I would like it to be called <code>City_FKC_CityType</code>.</p>
  
  <p>I found a <a href="https://stackoverflow.com/q/17926413/4275342">similar question</a> which says that you can change the name of constraints manually. However, this does not suit me, since I have a lot of tables and foreign key constraints. </p>
  
  <p>I found some information about "Custom Code First Conventions" and I am wondering if I can change the name of constraint using this or if there are  any methods to implement it?  </p>
  
  <p>Another variant is download the source code of EF, make changes and use that but that is in case of emergency.  </p>
  
  <p>As a side note, I would also like to change the naming convention of the primary key.</p>