Coalesce() public method

public Coalesce ( HqlExpression lhs, HqlExpression rhs ) : HqlTreeNode
lhs HqlExpression
rhs HqlExpression
return HqlTreeNode
コード例 #1
0
        public override HqlTreeNode BuildHql(MethodInfo method, Expression targetObject, ReadOnlyCollection<Expression> arguments, HqlTreeBuilder treeBuilder, IHqlExpressionVisitor visitor)
        {
            HqlExpression argument0Expression = visitor.Visit(arguments[0]).AsExpression();
            HqlExpression argument1Expression = visitor.Visit(arguments[1]).AsExpression();

            HqlTreeNode result = treeBuilder.Coalesce(argument0Expression, argument1Expression);
            return result;
        }
コード例 #2
0
		public HqlTreeNode BuildHql(MethodInfo method, Expression targetObject, ReadOnlyCollection<Expression> arguments, HqlTreeBuilder treeBuilder, IHqlExpressionVisitor visitor)
		{
			return treeBuilder.Coalesce(visitor.Visit(targetObject).AsExpression(), GetRhs(method, arguments, treeBuilder, visitor));
		}