DbEntityEntry.State (Propiedad)
[Esta página es específica de la versión 6 de Entity Framework. La versión más reciente está disponible como el paquete NuGet de Entity Framework. Para más información sobre Entity Framework, consulte msdn.com/es-ES/data/ef].
Obtiene o establece el estado de la entidad.
Espacio de nombres: System.Data.Entity.Infrastructure
Ensamblado: EntityFramework (en EntityFramework.dll)
Sintaxis
'Declaración
Public Property State As EntityState
Get
Set
'Uso
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)
Valor de propiedad
Tipo: System.Data.Entity.EntityState
El estado.