Ejemplo n.º 1
0
 private string BuildValidationWithMaxLengthAttribute(RegularExpressionAttribute regexpAtribute, string propertyName)
 {
     return
         (string.Format(
              @"model['{0}'].extend({{
                  pattern: {{
                             message: '{2}',
                             params: /{1}/
                             }} }});", propertyName, regexpAtribute.Pattern, regexpAtribute.LocalizableError()));
 }