Hi!
I would like to have a composite unique key with three properties/columns, something like this: https://stackoverflow.com/questions/228 ... s-in-table.
How can I achieve this?
Is there a way to edit the script generated by the model, so that I can reflect this change in Sql Server?
Thanks in advance!
Composite UNIQUE INDEX on multiple columns EF Core
-
- Posts: 17
- Joined: Thu 29 Jun 2017 11:07
Re: Composite UNIQUE INDEX on multiple columns EF Core
For each property, that participates in a composite unique index, open Property Editor, press [...] against Column to show Column Editor and set Unique Key (the same name for all properties within one composite unique key).