Condividi tramite


Metodo DbEntityEntry.Equals (DbEntityEntry)

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

Determina se l'oggetto DbEntityEntry specificato è uguale a questa istanza. Due istanze di DbEntityEntry sono considerate uguali se sono entrambe voci della stessa entità nello stesso DbContext.

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

Sintassi

'Dichiarazione
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _
Public Function Equals ( _
    other As DbEntityEntry _
) As Boolean
'Utilizzo
Dim instance As DbEntityEntry 
Dim other As DbEntityEntry 
Dim returnValue As Boolean 

returnValue = instance.Equals(other)
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public bool Equals(
    DbEntityEntry other
)
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
public:
bool Equals(
    DbEntityEntry^ other
)
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
member Equals : 
        other:DbEntityEntry -> bool
public function Equals(
    other : DbEntityEntry
) : boolean

Parametri

Valore restituito

Tipo: System.Boolean
true se l'oggetto specificato DbEntityEntry è uguale a questa istanza; in caso contrario false.

Vedere anche

Riferimento

DbEntityEntry Classe

Overload Equals

Spazio dei nomi System.Data.Entity.Infrastructure