The title is somewhat self explanatory. I have an entity that has another key already defined (that must remain that way) and I need to validate that a certain field is unique.
I am hoping to use a Validator applied in the metadata. But I can’t use DomainService there since the code must run on both Server and Client. So I have no idea how I could access my entity set to see if the field’s value is unique….
Ideas?
Thanks!
The way to do this is to create a file with the extension
.shared.cson the Server side. Put the validator in that: