title: EF6 code first - remove primary key from column named "id"
body: <p>Using C#, .Net Core, Entity Framework 6.0.</p>
  <p>How do I explain to EF that the column <code>public double Id { get; set; }</code> of my code first model is not the primary key?</p>
  <p>I've found <a href="https://www.entityframeworktutorial.net/code-first/databasegenerated-dataannotations-attribute.aspx" rel="nofollow noreferrer">this documentation</a> but it doesn't seem to do the trick, as this code:</p>
  <pre><code>[DatabaseGenerated(DatabaseGeneratedOption.None)]
  public double Id { get; set; }
  </code></pre>
  <p>still generates code like this upon <code>add-migration</code>:</p>
  <pre><code>CreateTable(
      &quot;dbo....&quot;,
      c =&gt; new
          {
              Id = c.Double(nullable: false),
              ...
          })
      .PrimaryKey(t =&gt; t.Id)
      ...;
  </code></pre>
  <p>I wouldn't like to turn off this feature from EF6 completely, as I need it just for this instance.</p>