Inequality() public method

public Inequality ( HqlExpression lhs, HqlExpression rhs ) : HqlInequality
lhs HqlExpression
rhs HqlExpression
return HqlInequality
コード例 #1
0
 public override HqlTreeNode BuildHql(MethodInfo method, Expression targetObject,
     ReadOnlyCollection<Expression> arguments, HqlTreeBuilder treeBuilder, IHqlExpressionVisitor visitor)
 {
     var constantParameter = arguments[1] as ConstantExpression;
     if (constantParameter != null && constantParameter.Value == null)
         return treeBuilder.IsNotNull(visitor.Visit(arguments[0]).AsExpression());
     else
         return treeBuilder.Inequality(
             visitor.Visit(arguments[0]).AsExpression(),
             visitor.Visit(arguments[1]).AsExpression());
 }