src/Shared/EntityFramework/Infrastructure/DbEntityEntry`.cs
/// <summary>
/// Determines whether the specified <see cref="DbEntityEntry{TEntity}" /> is equal to this instance.
/// Two <see cref="DbEntityEntry{TEntity}" /> instances are considered equal if they are both entries for
/// the same entity on the same <see cref="DbContext" />.
/// </summary>
/// <param name="other">
/// The <see cref="DbEntityEntry{TEntity}" /> to compare with this instance.
/// </param>
/// <returns>
/// <c>true</c> if the specified <see cref="DbEntityEntry{TEntity}" /> is equal to this instance; otherwise, <c>false</c> .
/// </returns>
Determines whether the specified  is equal to this instance.
Two  instances are considered equal if they are both entries for
the same entity on the same .
Determines whether the specified is equal to this instance . Two instances are considered equal if they are both entries for the same entity on the same .
[EditorBrowsable(EditorBrowsableState.Never)]
        public bool Equals(DbEntityEntry<TEntity> other)
        {
            if (ReferenceEquals(this, other))
            {
                return true;
            }
            return !ReferenceEquals(null, other) && _internalEntityEntry.Equals(other._internalEntityEntry);
        }
[ EditorBrowsable ( EditorBrowsableState . Never ) ] public bool Equals ( DbEntityEntry < TEntity > other ) { if ( ReferenceEquals ( this , other ) ) { return true ; } return ! ReferenceEquals ( null , other ) && _internalEntityEntry . Equals ( other . _internalEntityEntry ) ; }
Determines whether the specified  is equal to this instance.
Determines whether the specified is equal to this instance .
// Still hide it since it is generally not useful to see when dotting in the API.
true is equal to this instance; otherwise, false
true is equal to this instance ; otherwise false
other
DbEntityEntry<TEntity>
The  to compare with this instance.
The to compare with this instance .