public static int Hash(Expression expression, SqlExpressionComparerOptions options) { var hasher = new SqlExpressionHasher { options = options }; hasher.Visit(expression); return(hasher.hashCode); }
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); }
public static int Hash(Expression expression, SqlExpressionComparerOptions options) { if (expression == null) { return 0; } var hasher = new SqlExpressionHasher(options); hasher.Visit(expression); return hasher.hashCode; }