EntityFramework code first: Set order of fields
<p>I am using EntityFramework with the "Code first" approach with migrations.</p>

<p>I have successfully generated tables from my models, but the columns are being added in an alphabetical order rather than the order inside my model. </p>

<p>I have tried this:</p>

<pre><code>[Key, Column(Order=0)]
public int MyFirstKeyProperty { get; set; }

[Column(Order=1)]
public int MySecondKeyProperty { get; set; }
</code></pre>

<p>But that doesn't seem to be working. </p>

<p>How can I manually set the order of the fields in the database?</p>

<p>I am using ASP.NET Core and EF Core (SqlServer) v1.1.0. </p>