예제 #1
0
 private void ValidateOrderBy(string orderBy)
 {
     if (!EntityProperties.Contains(orderBy, StringComparer.InvariantCultureIgnoreCase))
     {
         string message = string.Format(ExceptionResource.CannotOrderBy, orderBy);
         throw new ValidationException(message, nameof(FindCriteria.OrderBy));
     }
 }