Condividi tramite


Proprietà DbReferenceEntry<TEntity, TProperty>.CurrentValue

[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 il valore corrente della proprietà di navigazione. Il valore corrente è costituito dall'entità a cui fa riferimento la proprietà di navigazione.

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

Sintassi

'Dichiarazione
Public Overrides Property CurrentValue As TProperty
    Get 
    Set
'Utilizzo
Dim instance As DbReferenceEntry 
Dim value As TProperty

value = instance.CurrentValue

instance.CurrentValue = value
public override TProperty CurrentValue { get; set; }
public:
virtual property TProperty CurrentValue {
    TProperty get () override;
    void set (TProperty value) override;
}
abstract CurrentValue : 'TProperty with get, set 
override CurrentValue : 'TProperty with get, set
override function get CurrentValue () : TProperty
override function set CurrentValue (value : TProperty)

Valore proprietà

Tipo: TProperty
Valore corrente.

Vedere anche

Riferimento

DbReferenceEntry<TEntity, TProperty> Classe

Spazio dei nomi System.Data.Entity.Infrastructure