Proprietà DbEntityEntry.State
[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 lo stato dell'entità.
Spazio dei nomi: System.Data.Entity.Infrastructure
Assembly: EntityFramework (in EntityFramework.dll)
Sintassi
'Dichiarazione
Public Property State As EntityState
Get
Set
'Utilizzo
Dim instance As DbEntityEntry
Dim value As EntityState
value = instance.State
instance.State = value
public EntityState State { get; set; }
public:
property EntityState State {
EntityState get ();
void set (EntityState value);
}
member State : EntityState with get, set
function get State () : EntityState
function set State (value : EntityState)
Valore proprietà
Tipo: System.Data.Entity.EntityState
Stato.