EntityFramework.Docs
EntityFramework.Docs copied to clipboard
Failed insert on composite key
I followed the recommended Fluent API for a composite key, but am receiving a unique constraint error on the second value of the key.
Violation of UNIQUE KEY constraint 'AK_example'. Cannot insert duplicate key in object 'dbo.example_table'. The duplicate key value is (1417821557451)
EDIT: found a data attribute assigning one of the keys as an alternative key.