Von,
You will need to query the database to ensure the value is unique. Try the followinging:
protected verride VerifierResult VerifyValue(object itemToVerify, object valueToVerify, TriggerContext triggerContext, VerifierContext verifierContext) {
var mgr = new EntityManager();
var value = (string)valueToVerify;
var isUnique = !mgr.GetQuery<myEntityType>().Any(e => e.myProperty ==
value);
return new VerifierResult(!isUnique );
}
Note that the above is for a synch environment.
Also, you might want to take a look in the DRC for more details in creating a custom verifier.
Regards,
Silvio.
Edited by sbelini - 27-Jun-2012 at 8:46am