You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see in the documentation that composite keys should work with multiple Key and Order attributes. Primary key on multiple columns, annotated by the [Key, Column(Order = X)] attributes
Only then I got the following error when running my app: The entity type '{Entity Here}' has multiple properties with the [Key] attribute. Composite primary keys configured by placing the [PrimaryKey] attribute on the entity type class, or by using 'HasKey' in 'OnModelCreating'.
Any change to add the PrimaryKey support?
Thanks!
The text was updated successfully, but these errors were encountered:
I have a class with PrimaryKey attribute for a composite key.
I see in the documentation that composite keys should work with multiple
Key
andOrder
attributes.Primary key on multiple columns, annotated by the
[Key, Column(Order = X)]
attributesOnly then I got the following error when running my app:
The entity type '{Entity Here}' has multiple properties with the [Key] attribute. Composite primary keys configured by placing the [PrimaryKey] attribute on the entity type class, or by using 'HasKey' in 'OnModelCreating'.
Any change to add the
PrimaryKey
support?Thanks!
The text was updated successfully, but these errors were encountered: