title: get the name of a column of an entity
body: <p>I am creating a website with asp.net core 3.1 and the entitie framework 6</p>
  <p>I would like to get the name of a column of an entity from my database in the code c#.</p>
  <pre><code>[Table(&quot;CORPSDEMETIER&quot;)]
  public partial class CorpsDeMetier : BaseClass
  {
      
      [Column(&quot;CODE_CORPS_DE_METIER&quot;)]
      [StringLength(5)]
      public string CodeCorpsDeMetier { get; set; }
  
      [Column(&quot;LIBELLE_CORPS_DE_METIER&quot;)]
      [StringLength(50)]
      public string LibelleCorpsDeMetier { get; set; }
  
      public IList&lt;EntrepriseCorpsdemetier&gt; EntrepriseCorpsdemetiers { get; set; }
      public IList&lt;ProjetEntrepriseCorpsDeMetier&gt; ProjetEntreprisesCorpsDeMetier { get; set; }
  
  }
  </code></pre>
  <p>I have see how to get it with SQL query like this:</p>
  <pre><code>SELECT * FROM sys.columns WHERE object_id = OBJECT_ID( 'CORPSDEMETIER' ) 
  </code></pre>
  <p>But I dont want ask the database one more time when I think I can get it in the code.</p>
  <p>In this case I would like get &quot;LIBELLE_CORPS_DE_METIER&quot;</p>
  <pre><code>CorpsDeMetier item = new CorpsDeMetier();
  string name = item.LibelleCorpsDeMetier. ......;
  </code></pre>
  <p>Sory my english is very bad I hope you understand me well.
  Thanks for read me.</p>