DbContextConfiguration.UseDatabaseNullSemantics Proprietà

Definizione

Ottiene o imposta un valore che indica se la semantica null del database viene visualizzata quando si confrontano due operandi, entrambi potenzialmente nullable. Il valore predefinito è false.

Ad esempio (operand1 == operand2) verrà tradotto come:

(operando1 = operando2)

se UseDatabaseNullSemantics è true, rispettivamente

((operand1 = operand2) AND (NOT (operand1 IS NULL OR operand2 IS NULL) OR ((operand1 IS NULL) AND (operand2 IS NULL)

se UseDatabaseNullSemantics è false.

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

Valore della proprietà

true se il comportamento di confronto null del database è abilitato, in caso contrario false .

Si applica a