title: How identify a primary key parameter from an ASP NET MVC Model object based on annotation [key] tag?
body: <p>Given this model class</p>
  
  <pre><code>public class MyClass
  {
      [Key]
      public uint MyObjectId { get; set; }
      public long Param1 { get; set; }
      public string Param2 { get; set; }
  }
  </code></pre>
  
  <p>How to programmatically identify the primary key parameter based on the <code>[Key]</code> annotation?</p>
  
  <p>In this case it would be <code>MyObjectId</code></p>