title: Is EntityFramework performance affected by specifying information like primary key?
body: <p>Say I have this simple entity:</p>
  
  <pre><code>public class Person
  {
      public int    PersonID { get; set; }
      public string Name     { get; set; }
  }
  </code></pre>
  
  <p>The entity framework can infer by convention that the <code>PersonID</code> field is the primary key. However, if I give the model builder this class:</p>
  
  <pre><code>public class PersonCfg : EntityTypeConfiguration&lt;Person&gt;
  {
      public PersonCfg()
      {
          ToTable("Person", "Person");
          HasKey(p =&gt; p.PersonID);
      }
  }
  </code></pre>
  
  <p>Would that improve startup performance? My thought was it might allow EF to do less reflecting and startup the app faster but I don't know how it works behind the scenes to know if it has any impact.</p>