Condividi tramite


Proprietà DbContextConfiguration.ValidateOnSaveEnabled

[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 le entità rilevate devono essere convalidate automaticamente quando viene richiamato l'oggetto SaveChanges(). Il valore predefinito è true.

Spazio dei nomi:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
Public Property ValidateOnSaveEnabled As Boolean 
    Get 
    Set
'Utilizzo
Dim instance As DbContextConfiguration 
Dim value As Boolean 

value = instance.ValidateOnSaveEnabled

instance.ValidateOnSaveEnabled = value
public bool ValidateOnSaveEnabled { get; set; }
public:
property bool ValidateOnSaveEnabled {
    bool get ();
    void set (bool value);
}
member ValidateOnSaveEnabled : bool with get, set
function get ValidateOnSaveEnabled () : boolean 
function set ValidateOnSaveEnabled (value : boolean)

Valore proprietà

Tipo: System.Boolean

Vedere anche

Riferimento

DbContextConfiguration Classe

Spazio dei nomi System.Data.Entity.Infrastructure