Snapshots can lose annotations on non-primary keys #8716
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
CSharpSnapshotGenerator.GenerateKey is always called for primary keys, but only called for alternate keys that are not at the principal end of a relationship. This is usually good. However, if the key has annotations (such as constraint name, clustered, etc.) then these will not be generated. So if the key has annotations, then HasAlternateKey should be generated even if it is at the principal end of a relationship.
The text was updated successfully, but these errors were encountered: