I'm extending the IdentityRole
class in MVC with a Description
property, the resulting table in the database is: Id, Description, Name. Is there a way to reorder columns using EF, to be Id, Name, Description?
here is the implementation of the derived class:
public class MIdentityRole : IdentityRole<int, ApplicationUserRole>, IRole<int>
{
[Column("Description", Order = 2)]
public string Description { get; set; }
public MIdentityRole() { }
public MIdentityRole(string name) : this()
{
Name = name;
}
public MIdentityRole(string name, string description) : this(name)
{
Description = description;
}
}
As shown, I tried to use the Column
attribute, but it doesn't affect