다음을 통해 공유


ObjectContextOptions.UseCSharpNullComparisonBehavior 속성

정의

C# NullComparison 동작을 사용할지 여부를 결정하는 부울 값을 가져오거나 설정합니다.

public bool UseCSharpNullComparisonBehavior { get; set; }
member this.UseCSharpNullComparisonBehavior : bool with get, set
Public Property UseCSharpNullComparisonBehavior As Boolean

속성 값

C# NullComparison 동작을 사용해야 하는 경우 true입니다. 그렇지 않으면 false입니다.

설명

이 플래그는 LinqToEntities에서 null 값을 비교할 때 C# 동작을 표시해야 하는지 여부를 결정합니다. 이 플래그가 설정되면 두 피연산자 간의 같음 비교(둘 다 잠재적으로 null 허용)가 다시 작성되어 C# null 비교 의미 체계를 표시합니다. 예: (operand1 = operand2)는 (((operand1 = operand2) AND NOT(operand1 IS NULL OR operand2 IS NULL)))으로 다시 작성됩니다. || (operand1 IS NULL && operand2 IS NULL)) 를 사용하는 ObjectContext경우 기본값은 false입니다.

적용 대상