FilterQueryValidator Class

 

Represents a validator used to validate a FilterQueryOption based on the ODataValidationSettings.

Namespace:   System.Web.OData.Query.Validators
Assembly:  System.Web.OData (in System.Web.OData.dll)

Inheritance Hierarchy

System.Object
  System.Web.OData.Query.Validators.FilterQueryValidator

Syntax

public class FilterQueryValidator
public ref class FilterQueryValidator 
type FilterQueryValidator = class end
Public Class FilterQueryValidator

Constructors

Name Description
System_CAPS_pubmethod FilterQueryValidator()

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod Validate(FilterQueryOption, ODataValidationSettings)

Validates a FilterQueryOption.

System_CAPS_pubmethod ValidateAllNode(AllNode, ODataValidationSettings)

Override this method to restrict the 'all' query inside the filter query.

System_CAPS_pubmethod ValidateAnyNode(AnyNode, ODataValidationSettings)

Override this method to restrict the 'any' query inside the filter query.

System_CAPS_pubmethod ValidateArithmeticOperator(BinaryOperatorNode, ODataValidationSettings)

Override this method for the Arithmetic operators, including add, sub, mul, div, mod.

System_CAPS_pubmethod 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.

System_CAPS_pubmethod ValidateCollectionPropertyAccessNode(CollectionPropertyAccessNode, ODataValidationSettings)

Override this method to validate collection property accessor.

System_CAPS_pubmethod ValidateConstantNode(ConstantNode, ODataValidationSettings)

Override this method to restrict the 'constant' inside the filter query.

System_CAPS_pubmethod ValidateConvertNode(ConvertNode, ODataValidationSettings)

Override this method to restrict the 'cast' inside the filter query.

System_CAPS_pubmethod ValidateEntityCollectionCastNode(EntityCollectionCastNode, ODataValidationSettings)

Override this method if you want to validate casts on entity collections.

System_CAPS_pubmethod 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'.

System_CAPS_pubmethod ValidateNavigationPropertyNode(QueryNode, IEdmNavigationProperty, ODataValidationSettings)

Override this method for the navigation property node.

System_CAPS_pubmethod ValidateQueryNode(QueryNode, ODataValidationSettings)

Override this method if you want to visit each query node.

System_CAPS_pubmethod ValidateRangeVariable(RangeVariable, ODataValidationSettings)

Override this method to validate the parameter used in the filter query.

System_CAPS_pubmethod ValidateSingleEntityCastNode(SingleEntityCastNode, ODataValidationSettings)

Override this method if you want to validate casts on single entities.

System_CAPS_pubmethod ValidateSingleEntityFunctionCallNode(SingleEntityFunctionCallNode, ODataValidationSettings)

Override this method to validate single entity function calls, such as 'cast'.

System_CAPS_pubmethod ValidateSingleValueFunctionCallNode(SingleValueFunctionCallNode, ODataValidationSettings)

Override this method to validate Function calls, such as 'length', 'years', etc.

System_CAPS_pubmethod ValidateSingleValuePropertyAccessNode(SingleValuePropertyAccessNode, ODataValidationSettings)

Override this method to validate property accessor.

System_CAPS_pubmethod 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.OData.Query.Validators Namespace

Return to top