In your example, the SQL database is the source of truth and you can only put unique constraints on your SQL, not on Azure Cognitive Search.
You can check the details about adding unique constraints to SQL Server databases here.
Also, please, excuse me for the offtopic, but the EntityName
seems more like an EntityType
, as it is not unique.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…