Visit() protected method

protected Visit ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression
示例#1
0
        public static int Hash(Expression expression, SqlExpressionComparerOptions options)
        {
            var hasher = new SqlExpressionHasher
            {
                options = options
            };

            hasher.Visit(expression);

            return(hasher.hashCode);
        }
示例#2
0
        public static int Hash(Expression expression, bool ignoreConstantPlaceholderValues)
        {
            var hasher = new SqlExpressionHasher
            {
                ignoreConstantPlaceholderValues = ignoreConstantPlaceholderValues
            };

            hasher.Visit(expression);

            return(hasher.hashCode);
        }
        public static int Hash(Expression expression, SqlExpressionComparerOptions options)
        {
            if (expression == null)
            {
                return(0);
            }

            var hasher = new SqlExpressionHasher(options);

            hasher.Visit(expression);

            return(hasher.hashCode);
        }
示例#4
0
		public static int Hash(Expression expression, SqlExpressionComparerOptions options)
		{
			if (expression == null)
			{
				return 0;
			}

			var hasher = new SqlExpressionHasher(options);

			hasher.Visit(expression);

			return hasher.hashCode;
		}