다음을 통해 공유


ODataValidationSettings 클래스

정의

이 클래스는 쿼리를 위한 유효성 검사 설정을 설명합니다.

public class ODataValidationSettings
type ODataValidationSettings = class
Public Class ODataValidationSettings
상속
ODataValidationSettings

생성자

ODataValidationSettings()

이 클래스는 쿼리를 위한 유효성 검사 설정을 설명합니다.

속성

AllowedArithmeticOperators

허용된 산술 연산자(예: 'add', 'sub', 'mul', 'div', 'mod') 목록을 가져오거나 설정합니다.

AllowedFunctions

$filter 쿼리에 사용되는 허용된 함수 목록을 가져오거나 설정합니다.

허용된 함수는 다음과 같습니다.

문자열 관련: contains, endswith, startswith, length, indexof, substring, tolower, toupper, trim, concat

예: ~/Customers?$filter=length(CompanyName) eq 19

날짜 및 시간 관련: 연도, 월, 일, 시간, 분, 초, fractionalseconds, 날짜, 시간

예: ~/Employees?$filter=year(BirthDate) eq 1971

수학 관련: 둥근, 바닥, 천장

type related:isof, cast,

컬렉션 관련: any, all

AllowedLogicalOperators

허용된 논리 연산자(예: 'eq', 'ne', 'gt', 'ge', 'lt', 'le', 'and', 'or', 'not') 목록을 가져오거나 설정합니다.

AllowedOrderByProperties

결과를 orderby할 수 있는 속성 목록을 가져옵니다. 기본적으로 이 목록은 비어 있으며 이는 임의 속성으로 정렬할 수 있음을 의미합니다.

예를 들어 빈 컬렉션은 클라이언트가 임의 속성으로 쿼리 가능한 결과를 정렬할 수 있음을 의미합니다. "Name"을 이 목록에 추가하면 쿼리 가능한 결과를 Name 속성으로만 정렬할 수 있습니다.

AllowedQueryOptions

쿼리 내부에 허용되는 쿼리 매개 변수를 가져오거나 설정합니다. 기본값은 $filter, $skip, $top, $orderby, $expand, $select, $count, $format, $skiptoken 및 $deltatoken 포함한 모든 쿼리 옵션입니다.

MaxAnyAllExpressionDepth

쿼리 내부에 중첩된 Any 또는 All 요소의 최대 깊이를 가져오거나 설정합니다.

MaxExpansionDepth

$expand 쿼리 옵션에 대한 최대 확장 깊이를 가져오거나 설정합니다.

MaxNodeCount

$filter 구문 트리 내부의 최대 노드 수를 가져오거나 설정합니다.

MaxOrderByNodeCount

$orderby에 있을 수 있는 최대 식 수를 가져오거나 설정합니다.

MaxSkip

클라이언트가 요청할 수 있는 $skip의 최대값을 가져오거나 설정합니다.

MaxTop

클라이언트가 요청할 수 있는 $top의 최대값을 가져오거나 설정합니다.

적용 대상