The ordering of the columns in a primary key is only considering the order of the columns in the table.
There already is a PrimaryKeyOrdinal property, and changing the order to using that seems to be working fine, so maybe it is just a mistake:
public IEnumerable<Column> PrimaryKeys
{
get
{
return Columns.Where(x => x.IsPrimaryKey)
.OrderBy(x => x.PrimaryKeyOrdinal)
.ThenBy(x => x.Ordinal)
.ToList();
}
}
Comments: This is now fixed in release v2.13.1
There already is a PrimaryKeyOrdinal property, and changing the order to using that seems to be working fine, so maybe it is just a mistake:
public IEnumerable<Column> PrimaryKeys
{
get
{
return Columns.Where(x => x.IsPrimaryKey)
.OrderBy(x => x.PrimaryKeyOrdinal)
.ThenBy(x => x.Ordinal)
.ToList();
}
}
Comments: This is now fixed in release v2.13.1