src/Shared/EntityFramework/Core/Common/QueryCache/EntityClientCacheKey.cs
// <summary>
// determines equality of two cache keys based on cache context values
// </summary>
determines equality of two cache keys based on cache context values
determines equality of two cache keys based on cache context values
public override bool Equals(object otherObject)
        {
            DebugCheck.NotNull(otherObject);
            if (typeof(EntityClientCacheKey) != otherObject.GetType())
            {
                return false;
            }
            var otherEntityClientCacheKey = (EntityClientCacheKey)otherObject;
            return (_commandType == otherEntityClientCacheKey._commandType &&
                    _parameterCount == otherEntityClientCacheKey._parameterCount) &&
                   Equals(otherEntityClientCacheKey._eSqlStatement, _eSqlStatement) &&
                   Equals(otherEntityClientCacheKey._parametersToken, _parametersToken);
        }
public override bool Equals ( object otherObject ) { DebugCheck . NotNull ( otherObject ) ; if ( typeof ( EntityClientCacheKey ) != otherObject . GetType ( ) ) { return false ; } var otherEntityClientCacheKey = ( EntityClientCacheKey ) otherObject ; return ( _commandType == otherEntityClientCacheKey . _commandType && _parameterCount == otherEntityClientCacheKey . _parameterCount ) && Equals ( otherEntityClientCacheKey . _eSqlStatement , _eSqlStatement ) && Equals ( otherEntityClientCacheKey . _parametersToken , _parametersToken ) ; }
determines equality of two cache keys based on cache context values
determines equality of two cache keys based on cache context values
otherObject
object