Exemplo n.º 1
0
 /// <summary>
 /// Valida a unicidade da propriedade
 /// </summary>
 /// <param name="session"></param>
 /// <param name="propertyName"></param>
 /// <param name="propertyValue"></param>
 /// <param name="parent"></param>
 /// <returns></returns>
 public override bool Validate(GDASession session, ValidationMode mode, string propertyName, object propertyValue, object parent)
 {
     if (mode == ValidationMode.Delete)
     {
         return(true);
     }
     return(!GDAOperations.CheckExist(session, mode, propertyName, propertyValue, parent));
 }