Proprietà DbContextConfiguration.UseDatabaseNullSemantics
[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]
Ottiene o imposta un valore che indica se viene esibita la semantica Null del database durante il confronto di due operandi per i quali vengono potenzialmente ammessi i valori Null. Il valore predefinito è false. Ad esempio, (operand1 == operand2) sarà convertito in: (operand1 = operand2) 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.
Spazio dei nomi: System.Data.Entity.Infrastructure
Assembly: EntityFramework (in EntityFramework.dll)
Sintassi
'Dichiarazione
Public Property UseDatabaseNullSemantics As Boolean
Get
Set
'Utilizzo
Dim instance As DbContextConfiguration
Dim value As Boolean
value = instance.UseDatabaseNullSemantics
instance.UseDatabaseNullSemantics = value
public bool UseDatabaseNullSemantics { get; set; }
public:
property bool UseDatabaseNullSemantics {
bool get ();
void set (bool value);
}
member UseDatabaseNullSemantics : bool with get, set
function get UseDatabaseNullSemantics () : boolean
function set UseDatabaseNullSemantics (value : boolean)
Valore proprietà
Tipo: System.Boolean
true se il comportamento di confronto Null del database è abilitato; in caso contrario, false.