@Svyatoslav Danyliv
Thanks,Your solution has completely opened up my thinking。
But there is a small issue, the method of entityType.GetProperties() is sorted alphabetically,so it cannot export like this : BName ,AName
public class Test: BaseModel
{
public string BName { get; set; }
public string AName { get; set; }
}
because the basemodel's fileds have Column(Order = x) x=0 (...) x=100 so i resolve it at the last like this:
var columnOrder = property.GetColumnOrder();
if (!columnOrder.HasValue)
{
property.SetColumnOrder(1);
}