Class ExpressionValidator
Validates LINQ expressions used in filter and sort builders.
public class ExpressionValidator
- Inheritance
-
ExpressionValidator
- Inherited Members
Methods
DoesPropertyHaveAttribute<T, TField, TAttribute>(Expression<Func<T, TField>>)
Determines whether the property targeted by the given expression has the specified attribute applied to it.
public static bool DoesPropertyHaveAttribute<T, TField, TAttribute>(Expression<Func<T, TField>> expression) where TAttribute : Attribute
Parameters
expressionExpression<Func<T, TField>>
Returns
Type Parameters
TTFieldTAttribute