Quantcast
Channel: EntityFramework Reverse POCO Code First Generator
Viewing all articles
Browse latest Browse all 1642

Closed Issue: PrimaryKey column order [122]

$
0
0
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

Viewing all articles
Browse latest Browse all 1642

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>