How to set unqiue constraint on a column of existing table using EF Core

前端 未结 0 657
故里飘歌
故里飘歌 2021-01-17 08:46

Trying to set unique constrain for a column in exist table , to do so **

entity.HasIndex(e => e.SurveyName).IsUnique();

** line i

相关标签:
回答
  • 消灭零回复
提交回复
热议问题