public static EvaluationResult <OrderByClause> TryBuildOrderByClause(this OrderByInfo orderByInfo, Type type, IEnumerable <string> validProperties = null, IDictionary <string, string> propertyMapping = null) { if (orderByInfo is null) { throw new ArgumentNullException(nameof(orderByInfo)); } if (type is null) { throw new ArgumentNullException(nameof(type)); } var arg = new BuildArgument { ValidProperties = validProperties, EvaluationType = type, PropertyMapping = propertyMapping }; return(OrderByParser.Parse(new[] { orderByInfo }, arg)); }
public static EvaluationResult <OrderByClause> TryBuildOrderByClause <T>(this OrderByInfo orderByInfo, IEnumerable <string> validProperties = null, IDictionary <string, string> propertyMapping = null) { return(TryBuildOrderByClause(orderByInfo, typeof(T), validProperties, propertyMapping)); }