I have a table which has the Id as primary key, I want to have a composite unique key on Code and Value column. I\'m trying in this way.
Code
Value
Adding solution for others.
Don't modify anything just add the below line
modelBuilder.Entity(b => { b.HasIndex(e => new { e.Code, e.Value}).IsUnique(); });