FilterQueryValidator Class
Represents a validator used to validate a FilterQueryOption based on the ODataValidationSettings.
Namespace: System.Web.Http.OData.Query.Validators
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Inheritance Hierarchy
System.Object
System.Web.Http.OData.Query.Validators.FilterQueryValidator
Syntax
public class FilterQueryValidator
public ref class FilterQueryValidator
type FilterQueryValidator = class end
Public Class FilterQueryValidator
Constructors
Name | Description | |
---|---|---|
FilterQueryValidator() |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
|
Validate(FilterQueryOption, ODataValidationSettings) | Validates a FilterQueryOption. |
|
ValidateAllNode(AllNode, ODataValidationSettings) | Override this method to restrict the 'all' query inside the filter query. |
|
ValidateAnyNode(AnyNode, ODataValidationSettings) | Override this method to restrict the 'any' query inside the filter query. |
|
ValidateArithmeticOperator(BinaryOperatorNode, ODataValidationSettings) | Override this method for the Arithmetic operators, including add, sub, mul, div, mod. |
|
ValidateBinaryOperatorNode(BinaryOperatorNode, ODataValidationSettings) | override this method to restrict the binary operators inside the filter query. That includes all the logical operators except 'not' and all math operators. |
|
ValidateCollectionPropertyAccessNode(CollectionPropertyAccessNode, ODataValidationSettings) | Override this method to validate collection property accessor. |
|
ValidateConstantNode(ConstantNode, ODataValidationSettings) | Override this method to restrict the 'constant' inside the filter query. |
|
ValidateConvertNode(ConvertNode, ODataValidationSettings) | Override this method to restrict the 'cast' inside the filter query. |
|
ValidateEntityCollectionCastNode(EntityCollectionCastNode, ODataValidationSettings) | Override this method if you want to validate casts on entity collections. |
|
ValidateLogicalOperator(BinaryOperatorNode, ODataValidationSettings) | Override this method to validate the LogicalOperators such as 'eq', 'ne', 'gt', 'ge', 'lt', 'le', 'and', 'or'. Please note that 'not' is not included here. Please override ValidateUnaryOperatorNode to customize 'not'. |
|
ValidateNavigationPropertyNode(QueryNode, IEdmNavigationProperty, ODataValidationSettings) | Override this method for the navigation property node. |
|
ValidateQueryNode(QueryNode, ODataValidationSettings) | Override this method if you want to visit each query node. |
|
ValidateRangeVariable(RangeVariable, ODataValidationSettings) | Override this method to validate the parameter used in the filter query. |
|
ValidateSingleEntityCastNode(SingleEntityCastNode, ODataValidationSettings) | Override this method if you want to validate casts on single entities. |
|
ValidateSingleValueFunctionCallNode(SingleValueFunctionCallNode, ODataValidationSettings) | Override this method to validate Function calls, such as 'length', 'years', etc. |
|
ValidateSingleValuePropertyAccessNode(SingleValuePropertyAccessNode, ODataValidationSettings) | Override this method to validate property accessor. |
|
ValidateUnaryOperatorNode(UnaryOperatorNode, ODataValidationSettings) | Override this method to validate the Not operator. |
Remarks
Please note this class is not thread safe.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
System.Web.Http.OData.Query.Validators Namespace
Return to top