Exemple #1
0
 public IEnumerable<System.Web.Mvc.ModelClientValidationRule> GetClientValidationRules(CustomFieldDefinition field, FieldValidationRule rule)
 {
     yield return new ModelClientValidationRule
     {
         ValidationType = "uniquefield",
         ErrorMessage = rule.ErrorMessage
     };
 }
 public IEnumerable<System.Web.Mvc.ModelClientValidationRule> GetClientValidationRules(CustomFieldDefinition field, FieldValidationRule rule)
 {
     yield return new ModelClientValidationRequiredRule(rule.ErrorMessage);
 }
 public void UpdateFrom(FieldValidationRule other)
 {
     ErrorMessage = other.ErrorMessage;
     ValidatorName = other.ValidatorName;
     ValidatorConfig = other.ValidatorConfig;
 }
 public void UpdateFrom(FieldValidationRule other)
 {
     ErrorMessage    = other.ErrorMessage;
     ValidatorName   = other.ValidatorName;
     ValidatorConfig = other.ValidatorConfig;
 }