Composite UNIQUE INDEX on multiple columns EF Core
Posted: Wed 31 Jul 2019 14:34
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!
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!