I can get the primary key and any alternate keys using the entityType.GetKeys() method
The DatabaseModel's Table property has a list called UniqueConstraints, which holds any non-foreign key, non-primary key, columns that have a unique constraint on them.
Currently the EfSchemaCompare feature does not support the checking of alternate keys.
Here are the notes on how I might do it.
entityType.GetKeys()
methodUniqueConstraints
, which holds any non-foreign key, non-primary key, columns that have a unique constraint on them.