title: How to retrieve Entity Configuration from Fluent Api
body: <p>Using Entity-Framework 6 I'm able to set up the configuration through Fluent Api like this:</p>
  
  <pre><code>public class ApplicationUserConfiguration : EntityTypeConfiguration&lt;ApplicationUser&gt;
  {
      public ApplicationUserConfiguration()
      {
          this.HasKey(d =&gt; d.Id);
          this.Ignore(d =&gt; d.UserId);
      }
  }
  </code></pre>
  
  <p><sub>Source from <a href="https://stackoverflow.com/questions/20753560/entity-framework-seeding-with-identity-microsoft-owin-security-user">this question</a></sub></p>
  
  <p>Using the attribute approach I'm able to know what's the property roles by reflection, but I wonder how can I retrieve these configurations, like <code>Key</code> for example, with Fluent Api approach?</p>
  
  <p>There's no public property from the <code>EntityTypeConfiguration&lt;&gt;</code> class.</p>
  
  <p>Is that possible to get the <code>Key</code> and <code>ForeignKey</code> somehow?</p>