예제 #1
0
 public string GetString(IValidationContext context)
 {
     if (context == null)
     {
         return(propertyName);
     }
     else
     {
         return(context.GetLiteralService().GetPropertyName(entityType, propertyName));
     }
 }
 public string GetString(IValidationContext context)
 {
     if (context == null)
     {
         return(code);
     }
     else
     {
         return(context.GetLiteralService().GetValidationErrorMessage(code));
     }
 }