(Requests all products with a Price of 2.55). (Requests all products with a Price of 2.55). (Requests all products with a Rating exactly divisible by 5). Grouping Operator The Grouping Operator (open and close parenthesis "( )") controls the evaluation order of an expression. The Grouping Operator evaluates to the expression grouped inside the parenthesis. For example: Requests all products, because 9 mod 3 is 0. Canonical Functions In addition to operators, a set of functions is also defined for use with the filter or orderby query options. The following table lists the available functions. Note: ISNULL or COALESCE operators are not defined. Instead, there is a null literal that can be used in comparisons. The syntax for all canonical functions are defined in [OData-ABNF]. substringof The substringof canonical function has the following signature: Edm.Boolean substringof(Edm.String,Edm.String) If implemented the substringof canonical function MUST return true if, and only if, the parameter string value is a substring of the second parameter string value. The substringOfMethodCallExpr syntax rule defines how the substringof function is invoked. For example: Returns all customers with a CompanyName that contains 'Alfreds'. endswith The endswith canonical function has the following signature: Edm.Boolean endswith(Edm.String,Edm.String) If implemented the endswith canonical function MUST returns true if, and only if, the parameter string value ends with the second parameter string value. The endsWithMethodCallExpr syntax rule defines how the endswith function is invoked. For example: Returns all customers with a CompanyName that end with 'Futterkiste'. startswith The startswith canonical function has the following signature: Edm.Boolean startswith(Edm.String,Edm.String)
(Requests all products with a Price of 2.55). (Requests all products with a Price of 2.55). (Requests all products with a Rating exactly divisible by 5). Grouping Operator The Grouping Operator (open and close parenthesis "( )") controls the evaluation order of an expression. The Grouping Operator evaluates to the expression grouped inside the parenthesis. For example: Requests all products, because 9 mod 3 is 0. Canonical Functions In addition to operators, a set of functions is also defined for use with the filter or orderby query options. The following table lists the available functions. Note: ISNULL or COALESCE operators are not defined. Instead, there is a null literal that can be used in comparisons. The syntax for all canonical functions are defined in [OData-ABNF]. substringof The substringof canonical function has the following signature: Edm.Boolean substringof(Edm.String,Edm.String) If implemented the substringof canonical function MUST return true if, and only if, the parameter string value is a substring of the second parameter string value. The substringOfMethodCallExpr syntax rule defines how the substringof function is invoked. For example: Returns all customers with a CompanyName that contains 'Alfreds'. endswith The endswith canonical function has the following signature: Edm.Boolean endswith(Edm.String,Edm.String) If implemented the endswith canonical function MUST returns true if, and only if, the parameter string value ends with the second parameter string value. The endsWithMethodCallExpr syntax rule defines how the endswith function is invoked. For example: Returns all customers with a CompanyName that end with 'Futterkiste'. startswith The startswith canonical function has the following signature: Edm.Boolean startswith(Edm.String,Edm.String)
odata-core-v4.0-wd01-part2-url-conventions-current.docx