Condividi tramite


Metodo ObjectStateEntry.IEntityChangeTracker.EntityMemberChanging

[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.]

Utilizzato per segnalare che una proprietà dell'entità scalare sta per essere modificata. Il valore corrente della proprietà specificata viene memorizzato nella cache quando viene chiamato questo metodo.

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

Sintassi

'Dichiarazione
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Sub EntityMemberChanging ( _
    entityMemberName As String _
) Implements IEntityChangeTracker.EntityMemberChanging
'Utilizzo
Dim instance As ObjectStateEntry 
Dim entityMemberName As String 

CType(instance, IEntityChangeTracker).EntityMemberChanging(entityMemberName)
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
void IEntityChangeTracker.EntityMemberChanging(
    string entityMemberName
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
private:
virtual void EntityMemberChanging(
    String^ entityMemberName
) sealed = IEntityChangeTracker::EntityMemberChanging
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private abstract EntityMemberChanging : 
        entityMemberName:string -> unit 
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private override EntityMemberChanging : 
        entityMemberName:string -> unit
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Parametri

  • entityMemberName
    Tipo: System.String
    Nome della proprietà dell'entità che sta per essere modificata

Implements

IEntityChangeTracker.EntityMemberChanging(String)

Vedere anche

Riferimento

ObjectStateEntry Classe

Spazio dei nomi System.Data.Entity.Core.Objects