This is not a duplicate of this question as this is entity framework core and that is for normal entity frame work. If you read my question you would've noticed that.
The project I am working on is written in .NET Core 2.2/ I currently have a bunch of models for my entity framework core code-first implementation, they all inherit from BaseEntity
and is defined as follows:
public abstract class BaseEntity
{
public DateTime? CreatedAt { get; set; }
public DateTime? UpdatedAt { get; set; }
}
But whenever I generate a new migration using Add-Migration
it puts the CreatedAt
and UpdatedAt
columns at the beginning of the table. Is there anyway to specify a column order or something that will put the columns at the end of the table instead of the beginning.