Metodo DbEntityEntry<TEntity>.Equals (DbEntityEntry<TEntity>)
[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<TEntity> specificato è uguale a questa istanza. Due istanze di DbEntityEntry<TEntity> 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(Of TEntity) _
) As Boolean
'Utilizzo
Dim instance As DbEntityEntry
Dim other As DbEntityEntry(Of TEntity)
Dim returnValue As Boolean
returnValue = instance.Equals(other)
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public bool Equals(
DbEntityEntry<TEntity> other
)
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
public:
bool Equals(
DbEntityEntry<TEntity>^ other
)
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
member Equals :
other:DbEntityEntry<'TEntity> -> bool
public function Equals(
other : DbEntityEntry<TEntity>
) : boolean
Parametri
- other
Tipo: System.Data.Entity.Infrastructure.DbEntityEntry<TEntity>
Oggetto DbEntityEntry<TEntity> da confrontare con questa istanza.
Valore restituito
Tipo: System.Boolean
true se l'oggetto specificato DbEntityEntry<TEntity> è uguale a questa istanza; in caso contrario false.