title: InvalidOperationException: The entity type 'x' requires a primary key to be defined. If you intended to use a keyless entity type call 'HasNoKey()'
body: <p>Not sure why I get this error even though I have the "Key" attribute on the key column. Class looks like this:</p>
  
  <pre><code>public class MyClass
  {
      [Key]
      private string MyPrimaryKey { get; set; } 
  
      ...
  }
  </code></pre>