语言

DbCommandTree.UseDatabaseNullSemantics 属性

定义

获取一个值,该值指示在比较两个操作数时是否显示数据库 null 语义,这两个操作数都可能可为 null。 默认值为真。

例如,(operand1 == operand2)将转换为:

(operand1 = operand2)

如果 UseDatabaseNullSemantics 为 true,则分别为 true

((操作数1 = 操作数2) 和 (NOT (操作数 1 为 NULL 或操作数 2 为 NULL)) 或 (操作数 1 为 NULL) 和 (操作数 2 为 NULL))

如果 UseDatabaseNullSemantics 为 false,

public bool UseDatabaseNullSemantics { get; }
member this.UseDatabaseNullSemantics : bool
Public ReadOnly Property UseDatabaseNullSemantics As Boolean

属性值

true 如果启用了数据库 null 比较行为,则为 ;否则为 false 。

适用于